:root {
  --ink: #11101d;
  --muted: #676273;
  --purple: #6f3dc2;
  --lavender: #b77ae5;
  --pale: #f8f4fc;
  --border: rgba(50, 29, 77, .12);
  --container: min(980px, calc(100% - 48px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
.container { width: var(--container); margin-inline: auto; }
.legal-header { height: 78px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .94); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 27px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.brand > span > span { color: var(--purple); }
.language-picker { position: relative; line-height: 1.2; }
.language { height: 42px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); background: white; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; }
.language svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.language .chevron { width: 12px; transition: transform .2s ease; }
.language[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.language-menu { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: 164px; padding: 6px; border: 1px solid var(--border); border-radius: 14px; background: white; box-shadow: 0 16px 40px rgba(36, 20, 58, .16); }
.language-menu[hidden] { display: none; }
.language-option { width: 100%; padding: 10px 11px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); background: transparent; border: 0; border-radius: 9px; font: inherit; text-align: left; cursor: pointer; }
.language-option:hover, .language-option:focus-visible { background: var(--pale); outline: none; }
.language-option[aria-current="true"] { color: var(--purple); background: var(--pale); font-weight: 700; }
.language-option[aria-current="true"]::before { content: "✓"; margin-right: 8px; }
.language-code { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.legal-hero { position: relative; padding: 82px 0 76px; background: radial-gradient(circle at 80% 0, #eee0fb, transparent 42%), var(--pale); overflow: hidden; }
.legal-hero::after { content: ""; position: absolute; right: -80px; bottom: -190px; width: 360px; height: 360px; border: 1px solid rgba(111, 61, 194, .16); border-radius: 50%; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 15px; color: var(--purple); font-size: 12px; font-weight: 820; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 0; font-size: clamp(48px, 7vw, 76px); line-height: 1; letter-spacing: -.055em; }
.updated { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.legal-layout { padding-block: 68px 90px; }
.notice { position: sticky; top: 24px; padding: 20px; border: 1px solid rgba(111, 61, 194, .18); border-radius: 18px; background: var(--pale); font-size: 13px; line-height: 1.55; }
.notice strong { color: var(--purple); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.notice p { margin: 8px 0 0; color: var(--muted); }
.legal-content { min-width: 0; }
.legal-content section { padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--border); }
.legal-content section:last-child { margin-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin: 0 0 14px; font-size: 25px; line-height: 1.25; letter-spacing: -.035em; }
.legal-content p { margin: 0 0 14px; color: var(--muted); }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content .lead { max-width: 760px; color: var(--ink); font-size: 19px; line-height: 1.65; }
.legal-content h3 { margin: 0 0 7px; font-size: 17px; line-height: 1.35; }
.guideline-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.guideline-card { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--pale); }
.guideline-card p { font-size: 14px; line-height: 1.55; }
.guideline-card strong { display: block; margin-bottom: 5px; color: var(--ink); }
.guideline-card--wide { grid-column: 1 / -1; }
.moderation-steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: moderation; }
.moderation-steps li { position: relative; min-height: 46px; margin-bottom: 15px; padding-left: 58px; color: var(--muted); }
.moderation-steps li::before { counter-increment: moderation; content: counter(moderation); position: absolute; top: -4px; left: 0; width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--purple); border-radius: 50%; font-size: 14px; font-weight: 800; }
.moderation-steps strong { color: var(--ink); }
.safety-note { padding: 18px 20px; border-left: 3px solid var(--purple); border-radius: 0 12px 12px 0; background: var(--pale); }
.account-deletion-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 390px); align-items: start; gap: clamp(36px, 7vw, 78px); }
.account-deletion-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: deletion; }
.account-deletion-steps li { position: relative; min-height: 44px; margin-bottom: 18px; padding-left: 58px; color: var(--muted); }
.account-deletion-steps li::before { counter-increment: deletion; content: counter(deletion); position: absolute; top: -3px; left: 0; width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--purple); border-radius: 12px; font-size: 14px; font-weight: 800; }
.account-deletion-steps strong { display: block; color: var(--ink); }
.settings-figure { margin: 0; padding: 13px; border: 1px solid var(--border); border-radius: 28px; background: var(--pale); box-shadow: 0 22px 55px rgba(36, 20, 58, .12); }
.settings-figure img { display: block; width: 100%; height: auto; border-radius: 19px; }
.settings-figure figcaption { padding: 12px 7px 4px; color: var(--muted); font-size: 13px; text-align: center; }
.deletion-warning { margin-top: 26px; padding: 18px 20px; border: 1px solid rgba(176, 52, 40, .18); border-radius: 14px; background: #fff6f4; color: #7e2e27; }
.deletion-warning strong { color: #a5362d; }
.legal-content a { color: var(--purple); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-content address { color: var(--muted); font-style: normal; }
.legal-content address strong { color: var(--ink); }
.legal-content dl { margin: 0; }
.legal-content dl div { display: grid; grid-template-columns: 100px 1fr; padding: 8px 0; border-bottom: 1px solid var(--border); }
.legal-content .contact-details div { border-bottom: 0; }
.legal-content dt { color: var(--muted); }
.legal-content dd { margin: 0; font-weight: 650; }
.legal-content .optional { margin-top: 12px; padding-left: 12px; color: #8b739e; border-left: 2px solid var(--lavender); font-size: 13px; }
.legal-footer { padding: 28px 0; color: #aaa5b1; background: #111019; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner a:hover { color: var(--lavender); }
@media (max-width: 760px) {
  :root { --container: calc(100% - 30px); }
  .legal-header { height: 68px; }
  .brand { font-size: 23px; }
  .brand img { width: 40px; height: 40px; }
  .header-actions { gap: 8px; }
  .language svg:first-child { display: none; }
  .legal-hero { padding: 60px 0 55px; }
  h1 { font-size: clamp(28px, 9vw, 48px); overflow-wrap: anywhere; }
  .legal-layout { grid-template-columns: 1fr; gap: 36px; padding-block: 42px 60px; }
  .notice { position: static; }
  .legal-content { overflow-wrap: anywhere; }
  .legal-content section { padding-bottom: 27px; margin-bottom: 27px; }
  .legal-content h2 { font-size: 22px; }
  .guideline-list { grid-template-columns: 1fr; }
  .guideline-card--wide { grid-column: auto; }
  .account-deletion-grid { grid-template-columns: 1fr; }
  .settings-figure { width: min(100%, 390px); margin-inline: auto; }
  .footer-inner { align-items: flex-start; flex-direction: column-reverse; }
  .footer-inner nav { flex-wrap: wrap; gap: 12px 20px; }
}
@media print {
  .legal-header, .legal-footer, .notice { display: none; }
  .legal-hero { padding: 20px 0; background: none; }
  .legal-layout { display: block; padding: 20px 0; }
  .legal-content { max-width: none; }
}
