:root {
  --ink: #30263a;
  --muted: #74647f;
  --soft: #f8eef5;
  --paper: #ffffff;
  --card: #fffefe;
  --line: rgba(88, 65, 99, 0.12);
  --pink: #ff6ea8;
  --orange: #ff9824;
  --yellow: #ffd76b;
  --mint: #53dfb9;
  --shadow: 0 10px 28px rgba(84, 53, 98, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
  background: linear-gradient(180deg, #fff8fc 0%, #f8fffd 52%, #fff8ec 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  display: none !important;
  content: none !important;
}

a {
  color: #c63c7a;
  text-decoration: none;
  font-weight: 900;
}

a:hover {
  text-decoration: none;
}

.legal-shell {
  width: min(860px, calc(100% - 52px));
  margin: 0 auto;
  padding: max(44px, calc(env(safe-area-inset-top) + 30px)) 0 max(70px, calc(env(safe-area-inset-bottom) + 44px));
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 22px;
  padding: 0;
  background: transparent;
}

.legal-back {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 9px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange) 62%, var(--yellow));
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 8px 18px rgba(255,109,169,.16), inset 0 1px 0 rgba(255,255,255,.42);
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.legal-back-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.22);
  font-size: 22px;
  line-height: 1;
}

.brand-link,
.top-links,
.legal-topbar .brand-link,
.legal-topbar .top-links {
  display: none !important;
}

.legal-card {
  overflow: hidden;
  border: 1px solid rgba(116, 92, 130, 0.1);
  border-radius: 34px;
  background: var(--card);
  box-shadow: var(--shadow);
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}

.legal-hero {
  padding: clamp(34px, 4.2vw, 54px) clamp(30px, 5vw, 62px) 28px;
  background: linear-gradient(135deg, rgba(255, 110, 168, 0.11), rgba(255, 216, 113, 0.08) 42%, rgba(83, 223, 185, 0.1));
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #8a4f66;
  background: rgba(255, 110, 168, .12);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  max-width: 740px;
  margin: 15px 0 12px;
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.065em;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: #63546f;
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 750;
}

.legal-content {
  padding: clamp(34px, 4.5vw, 56px) clamp(30px, 5vw, 62px) clamp(42px, 5vw, 68px);
  background: var(--paper);
}

.legal-content section {
  max-width: 760px;
}

.legal-content section + section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

p {
  margin: 0 0 14px;
  color: #4f415b;
  font-weight: 650;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 12px 0 0;
  padding-left: 21px;
  color: #4f415b;
  font-weight: 650;
}

li + li {
  margin-top: 9px;
}

.note-box {
  margin-top: 18px;
  padding: 16px 17px;
  border: 1px solid rgba(255, 110, 168, 0.16);
  border-radius: 22px;
  background: #fff8fb;
  color: #5f4f6a;
  box-shadow: none;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(116, 92, 130, 0.1);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(84, 53, 98, 0.05);
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}

.legal-footer nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legal-footer a {
  color: #6a5475;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(116, 92, 130, 0.08);
}

@media (min-width: 1180px) {
  .legal-shell {
    width: min(900px, calc(100% - 220px));
    padding-top: max(84px, calc(env(safe-area-inset-top) + 64px));
    padding-bottom: max(110px, calc(env(safe-area-inset-bottom) + 84px));
  }

  .legal-card {
    border-radius: 38px;
  }
}

@media (min-width: 1600px) {
  .legal-shell {
    width: min(940px, calc(100% - 320px));
  }
}

@media (max-width: 720px) {
  .legal-shell {
    width: min(100% - 34px, 560px);
    padding-top: max(26px, calc(env(safe-area-inset-top) + 16px));
    padding-bottom: max(54px, calc(env(safe-area-inset-bottom) + 34px));
  }

  .legal-topbar {
    margin-bottom: 16px;
  }

  .legal-card {
    border-radius: 30px;
  }

  .legal-hero {
    padding: 30px 24px 24px;
  }

  .legal-content {
    padding: 30px 24px 38px;
  }

  .legal-content section + section {
    margin-top: 28px;
    padding-top: 25px;
  }

  .legal-footer {
    justify-content: center;
    text-align: center;
    margin-top: 18px;
  }

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

@media (max-width: 420px) {
  .legal-shell {
    width: min(100% - 30px, 520px);
  }

  .legal-back {
    min-height: 44px;
    padding: 7px 12px 7px 8px;
  }

  .legal-back-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  h1 {
    font-size: clamp(31px, 10vw, 38px);
  }

  .legal-hero {
    padding: 28px 22px 22px;
  }

  .legal-content {
    padding: 28px 22px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
