:root {
  --cream: #fff6e4;
  --cream-light: #fff9f5;
  --coral: #f87171;
  --coral-deep: #ef4444;
  --pink: #ff8fa3;
  --navy: #1e293b;
  --subtext: #64748b;
  --line: #fecdd3;
  --shadow-soft: 0 12px 32px rgba(30, 41, 59, 0.1);
}

html {
  scroll-behavior: smooth;
}

body.legal-page {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  font-family: "M PLUS Rounded 1c", sans-serif !important;
  white-space: normal !important;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 143, 163, 0.25) 0, transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(244, 114, 182, 0.18) 0, transparent 34%),
    linear-gradient(160deg, var(--cream) 0%, var(--cream-light) 55%, #ffffff 100%);
}

.lp-legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 56px);
  backdrop-filter: blur(10px);
  background: rgba(255, 249, 245, 0.86);
  border-bottom: 1px solid rgba(255, 143, 163, 0.18);
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.15rem, 1vw + 0.9rem, 1.45rem);
  font-weight: 800;
}

.lp-brand:visited {
  color: var(--navy);
}

.lp-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.lp-legal-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lp-legal-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
}

.lp-legal-nav a:visited {
  color: var(--navy);
}

.lp-legal-nav a.is-current {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--coral), var(--pink));
}

.legal-main {
  width: min(1000px, calc(100% - 32px));
  margin: 26px auto 40px;
}

body.legal-page article.page {
  max-width: none !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 24px;
  padding: clamp(20px, 2vw, 34px) !important;
  box-shadow: var(--shadow-soft);
}

body.legal-page .page-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.legal-page img,
body.legal-page svg,
body.legal-page video {
  max-width: 100%;
  height: auto;
}

body.legal-page .page-title {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0;
}

body.legal-page h1,
body.legal-page h2,
body.legal-page h3,
body.legal-page h4 {
  color: var(--navy);
  letter-spacing: 0;
  font-weight: 800;
}

body.legal-page p,
body.legal-page li {
  color: var(--navy);
  line-height: 1.78;
}

body.legal-page article.page a {
  color: var(--coral-deep);
}

body.legal-page ul,
body.legal-page ol {
  margin-top: 0.55em;
  margin-bottom: 0.55em;
}

body.legal-page hr {
  border-bottom-color: rgba(248, 113, 113, 0.24);
}

body.legal-page figure.callout {
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: #fff7ed !important;
}

@media (max-width: 760px) {
  .lp-legal-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .lp-legal-nav {
    justify-content: center;
  }

  .legal-main {
    width: calc(100% - 20px);
    margin-top: 16px;
  }

  body.legal-page article.page {
    border-radius: 18px;
    padding: 16px !important;
  }
}
