:root {
  --paper: #f4f1ea;
  --paper-2: #eae7df;
  --surface: #fcfaf6;
  --surface-2: #fff;
  --ink: #191321;
  --muted: #6e6874;
  --line: rgba(38, 26, 48, .14);
  --line-strong: rgba(38, 26, 48, .28);
  --aqua: #39e6cf;
  --aqua-deep: #087a75;
  --warning: #8a5412;
  --display: system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --paper: #0e0915;
  --paper-2: #130c1d;
  --surface: #181020;
  --surface-2: #21152b;
  --ink: #f7f2fa;
  --muted: #b8afbf;
  --line: rgba(236, 226, 242, .13);
  --line-strong: rgba(236, 226, 242, .28);
  --aqua: #47ead7;
  --aqua-deep: #2ac5b8;
  --warning: #f0b867;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--display); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; line-height: 1.68; }
a { color: inherit; }
button, input { font: inherit; }
.legal-shell { width: min(960px, calc(100% - 36px)); margin-inline: auto; }
.legal-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(18px);
}
.legal-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-wordmark { color: var(--ink); font-size: 19px; font-weight: 900; letter-spacing: .18em; text-decoration: none; }
.legal-back { border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; text-decoration: none; font-size: 12px; font-weight: 750; }
.legal-main { padding: 76px 0 100px; }
.legal-kicker { margin: 0 0 14px; color: var(--aqua-deep); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
html[data-theme="dark"] .legal-kicker { color: var(--aqua); }
.legal-main h1 { max-width: 850px; margin: 0 0 20px; font-size: clamp(39px, 8vw, 72px); line-height: .99; letter-spacing: -.055em; }
.legal-lead { max-width: 780px; margin: 0 0 34px; color: var(--muted); font-size: 17px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; }
.legal-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--muted); font-size: 10px; }
.legal-card { border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 5vw, 46px); background: var(--surface); }
.legal-card + .legal-card { margin-top: 20px; }
.legal-card h2 { margin: 42px 0 12px; font-size: clamp(22px, 4vw, 28px); line-height: 1.16; letter-spacing: -.025em; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { margin: 27px 0 8px; font-size: 17px; }
.legal-card p, .legal-card li, .legal-card td, .legal-card th { color: var(--muted); font-size: 14px; }
.legal-card li + li { margin-top: 7px; }
.legal-card ul, .legal-card ol { padding-left: 21px; }
.legal-card strong { color: var(--ink); }
.legal-card a { text-underline-offset: 3px; }
.legal-card [data-open-cookie-settings] { border: 0; padding: 0; background: transparent; color: var(--aqua-deep); cursor: pointer; font: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .legal-card [data-open-cookie-settings] { color: var(--aqua); }
.legal-notice { margin: 24px 0; border-left: 4px solid var(--aqua-deep); border-radius: 12px; padding: 16px 18px; background: var(--paper-2); }
.legal-notice.warning { border-left-color: var(--warning); }
.legal-notice p { margin: 0; }
.legal-table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.legal-table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--surface-2); }
.legal-table th, .legal-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--ink); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.legal-grid a { display: block; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--surface-2); text-decoration: none; }
.legal-grid strong { display: block; margin-bottom: 5px; }
.legal-grid span { color: var(--muted); font-size: 12px; }
.legal-footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.privacy-footer-links { width: 100%; display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 0 0 14px; padding: 0; color: var(--muted); font-size: 10px; }
.privacy-footer-links a, .privacy-footer-links button { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.privacy-footer-links a:hover, .privacy-footer-links button:hover { color: var(--aqua-deep); }

.consent-banner {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  z-index: 130;
  width: min(980px, calc(100% - 32px));
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: 25px;
  padding: 20px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
  backdrop-filter: blur(20px);
}
.consent-banner[hidden], .consent-modal[hidden] { display: none; }
.consent-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.consent-copy strong { display: block; margin-bottom: 5px; font-size: 16px; line-height: 1.25; letter-spacing: -.02em; }
.consent-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent-copy a { color: var(--aqua-deep); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .consent-copy a { color: var(--aqua); }
.consent-actions { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 8px; }
.consent-action {
  min-height: 45px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 9px 14px;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}
.consent-action:hover, .consent-action:focus-visible { border-color: var(--aqua-deep); outline: 2px solid transparent; }
.consent-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(5, 3, 9, .72); backdrop-filter: blur(9px); }
.consent-dialog { width: min(620px, 100%); max-height: min(760px, calc(100svh - 32px)); overflow: auto; border: 1px solid var(--line-strong); border-radius: 28px; padding: 28px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 110px rgba(0, 0, 0, .46); }
.consent-dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.consent-dialog h2 { margin: 0 0 9px; font-size: clamp(27px, 5vw, 39px); line-height: 1; }
.consent-dialog-head p { margin: 0 0 24px; color: var(--muted); font-size: 12px; }
.consent-close { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 22px; }
.consent-category { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 10px; border: 1px solid var(--line); border-radius: 18px; padding: 17px; background: var(--surface-2); }
.consent-category strong { display: block; margin-bottom: 4px; font-size: 13px; }
.consent-category p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.consent-always { color: var(--aqua-deep); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.consent-switch { position: relative; width: 52px; height: 30px; }
.consent-switch input { position: absolute; opacity: 0; pointer-events: none; }
.consent-switch span { position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper-2); cursor: pointer; transition: .2s ease; }
.consent-switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: .2s ease; }
.consent-switch input:focus-visible + span { outline: 2px solid var(--aqua-deep); outline-offset: 2px; }
.consent-switch input:checked + span { border-color: var(--aqua-deep); background: color-mix(in srgb, var(--aqua) 30%, var(--surface)); }
.consent-switch input:checked + span::after { left: 26px; background: var(--aqua-deep); }
.consent-dialog-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 20px; }
.consent-note { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
body.has-consent-banner .mobile-whatsapp { opacity: 0; pointer-events: none; }

@media (max-width: 780px) {
  .legal-main { padding-top: 52px; }
  .legal-grid { grid-template-columns: 1fr; }
  .consent-banner { border-radius: 21px; padding: 17px; }
  .consent-layout { grid-template-columns: 1fr; gap: 15px; }
  .consent-actions { grid-template-columns: 1fr; }
  .consent-dialog { border-radius: 23px; padding: 21px; }
  .consent-dialog-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

