@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fredoka:wght@600;700&display=swap');

:root {
  --ink: #1c0931;
  --muted: #665873;
  --pink: #f40094;
  --purple: #8e35ff;
  --cream: #fff8f5;
  --line: rgba(28,9,49,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(255,44,171,.18), transparent 23rem),
    linear-gradient(180deg, #fff8f5 0%, #fff 34rem);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; }
.legal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(20px, calc((100vw - 1040px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.7);
  background: rgba(255,248,245,.88);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.brand strong { font-family: "Fredoka", sans-serif; font-size: 1.5rem; letter-spacing: -.04em; }
.back { text-decoration: none; font-weight: 700; }
.back:hover { color: var(--pink); }
.legal-shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 86px 0 110px; }
.legal-hero { max-width: 820px; margin-bottom: 65px; }
.kicker { margin: 0 0 15px; color: var(--pink); font-size: .82rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { font-family: "Fredoka", sans-serif; letter-spacing: -.04em; }
h1 { margin: 0; font-size: clamp(3.2rem, 7vw, 6rem); line-height: .94; }
.effective { display: inline-block; margin-top: 24px; padding: 8px 13px; border-radius: 999px; color: #fff; background: var(--ink); font-size: .86rem; font-weight: 700; }
.intro { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 95px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.74); }
.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: .92rem; }
.toc a:hover { color: var(--pink); }
.legal-content { min-width: 0; }
.legal-content section { padding: 0 0 40px; margin: 0 0 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.legal-content section:last-child { border-bottom: 0; }
h2 { margin: 0 0 15px; font-size: 1.75rem; line-height: 1.2; }
p { margin: 0 0 14px; }
ul { margin: 12px 0 0; padding-left: 22px; }
li { margin: 9px 0; }
.note { padding: 20px 22px; border-radius: 18px; background: #fff0fa; }
.legal-footer { display: flex; justify-content: space-between; gap: 20px; padding: 32px max(20px, calc((100vw - 1040px) / 2)); color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem; }
.legal-footer a { font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
  .legal-shell { width: min(100% - 32px, 1040px); padding-top: 62px; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; }
  .toc { position: static; }
  .legal-footer { flex-direction: column; }
}

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