:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: #4b4654;
  background: #f5f5f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #4b4654;
  --heading: #514660;
  --muted: #76727e;
  --lavender: #7967c7;
  --line: rgba(76, 69, 93, 0.11);
}

*, *::before, *::after { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 84% 0%, rgba(198, 186, 255, 0.25), transparent 27rem),
    #f5f5f7;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lavender); }

.legal-shell { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 23px 0 72px; }

.legal-nav {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 72px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #494153;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.legal-mark { display: grid; width: 32px; height: 32px; place-items: center; overflow: hidden; background: #eeeaff; border-radius: 10px; }
.legal-mark img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #6f6978;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.back-link::before { content: "←"; color: #8877ca; font-size: 16px; }
.back-link:hover { color: #6e5abe; }

.legal-eyebrow {
  margin: 0 0 14px;
  color: #807393;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

h1 {
  max-width: 680px;
  margin: 0;
  color: var(--heading);
  font-size: clamp(38px, 7vw, 58px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.legal-lede { max-width: 630px; margin: 17px 0 0; color: #76727e; font-size: 17px; line-height: 1.65; }
.legal-date { margin: 14px 0 0; color: #8d8894; font-size: 12px; }

.legal-card {
  margin-top: 37px;
  padding: 37px 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(85, 75, 107, 0.09);
  border-radius: 23px;
  box-shadow: 0 16px 48px rgba(58, 48, 86, 0.065);
}

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

h2 { margin: 0 0 9px; color: #5a5068; font-size: 19px; font-weight: 700; letter-spacing: -0.035em; }
p, li { color: #716d79; font-size: 15px; line-height: 1.78; }
p { margin: 0; }
ul { margin: 10px 0 0; padding-left: 21px; }
li + li { margin-top: 7px; }
.legal-section a { color: #7362bb; text-underline-offset: 3px; }
.legal-footer { margin-top: 25px; padding-top: 20px; color: #85808d; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; }

@media (max-width: 600px) {
  .legal-shell { width: calc(100% - 30px); padding-top: 14px; }
  .legal-nav { margin-bottom: 48px; }
  .legal-card { margin-top: 29px; padding: 25px 21px; border-radius: 19px; }
  .legal-lede { font-size: 16px; }
  p, li { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
