:root {
  --legal-green: #2e6f3e;
  --legal-green-dark: #235832;
  --legal-paper: #ffffff;
  --legal-ink: #202823;
  --legal-muted: #626c65;
  --legal-line: #dfe5e0;
  --legal-soft: #f1f5f2;
  --legal-page-bg: #e7ece9;
  --legal-link: #246b3a;
  --gate-bg: #f2f6f8;
  --gate-surface: #ffffff;
  --gate-surface-soft: #f7fafb;
  --gate-text: #172126;
  --gate-muted: #607078;
  --gate-border: #d9e3e7;
  --gate-accent: #0f766e;
  --gate-accent-hover: #0b5f59;
  --gate-shadow: 0 22px 60px rgba(17, 34, 41, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }

.legal-document-page { color-scheme: light; background: var(--legal-page-bg); color: var(--legal-ink); }
.legal-document-shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.legal-document-paper { overflow: hidden; background: var(--legal-paper); border: 1px solid #d7ddd8; border-radius: 8px; box-shadow: 0 18px 48px rgba(29, 46, 35, 0.13); }
.legal-document-cover { padding: clamp(28px, 6vw, 64px); text-align: center; border-bottom: 1px solid var(--legal-line); }
.legal-cover-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; text-align: left; }
.legal-logo-small { width: min(180px, 32vw); height: auto; }
.legal-cover-company { display: grid; gap: 3px; text-align: right; font-size: 0.83rem; color: #354039; }
.legal-cover-company span { color: var(--legal-muted); }
.legal-logo-main { display: block; width: min(430px, 72%); height: auto; margin: 42px auto 24px; }
.legal-cover-type { margin: 0 0 14px; color: var(--legal-muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.legal-document-cover h1 { max-width: 850px; margin: 0 auto 10px; color: #202721; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; text-transform: uppercase; }
.legal-cover-subtitle { margin: 0 auto; color: var(--legal-green); font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 800; }
.legal-cover-identity { margin: 16px 0 22px; color: #5f6862; line-height: 1.5; }
.legal-version-table { width: min(660px, 100%); margin: 24px auto 0; border: 1px solid var(--legal-line); text-align: left; }
.legal-version-table > div { display: grid; grid-template-columns: minmax(140px, 1fr) 1fr; }
.legal-version-table > div + div { border-top: 1px solid var(--legal-line); }
.legal-version-table dt, .legal-version-table dd { margin: 0; padding: 12px 14px; }
.legal-version-table dt { background: #edf3ee; color: var(--legal-green); font-weight: 800; }
.legal-version-table dd { background: #fff; }
.legal-cover-note { max-width: 780px; margin: 24px auto 0; color: #707871; font-size: 0.86rem; font-style: italic; line-height: 1.5; }
.legal-document-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 28px; }
.legal-document-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 14px; border: 1px solid #cfd9d1; border-radius: 8px; color: var(--legal-link); font-weight: 750; text-decoration: none; }
.legal-document-nav a:hover, .legal-document-nav a:focus-visible { border-color: var(--legal-green); background: #f3f7f4; outline: none; }
.legal-document-nav a[aria-current="page"] { background: var(--legal-green); border-color: var(--legal-green); color: #fff; }
.legal-document-nav .legal-pdf-link { border-color: #9fb8a5; }
.legal-document-content { padding: clamp(26px, 5vw, 56px); }
.legal-section { scroll-margin-top: 20px; }
.legal-section + .legal-section { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--legal-line); }
.legal-section h2 { margin: 0 0 14px; color: #1f2721; font-size: clamp(1.18rem, 2.4vw, 1.55rem); line-height: 1.25; }
.legal-section p, .legal-section li { color: #303832; font-size: 1rem; line-height: 1.68; }
.legal-section p { margin: 0; }
.legal-document-page--prose .legal-section p + p { margin-top: 8px; }
.legal-section ul { display: grid; gap: 8px; margin: 0; padding-left: 22px; }
.legal-section li::marker { color: var(--legal-green); }
.legal-document-footer { padding: 18px 24px; border-top: 1px solid var(--legal-line); color: #6c756e; font-size: 0.75rem; text-align: center; }

.legal-gate-page { min-height: 100vh; background: var(--gate-bg); color: var(--gate-text); }
.legal-gate-backdrop { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 36%), rgba(20, 31, 36, 0.48); }
.legal-gate-dialog { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--gate-surface); border: 1px solid var(--gate-border); border-radius: 22px; box-shadow: var(--gate-shadow); padding: clamp(24px, 5vw, 38px); }
.legal-gate-brand { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--gate-accent); color: #fff; font-weight: 800; letter-spacing: 0.04em; margin-bottom: 18px; }
.legal-gate-kicker, .legal-gate-note { color: var(--gate-muted); }
.legal-gate-dialog h1 { margin: 6px 0 12px; line-height: 1.15; font-size: clamp(1.65rem, 5vw, 2.3rem); }
.legal-gate-dialog > p { line-height: 1.55; }
.legal-gate-version { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.legal-gate-version span { background: var(--gate-surface-soft); border: 1px solid var(--gate-border); border-radius: 999px; padding: 7px 11px; font-size: 0.88rem; }
.legal-gate-links { display: grid; gap: 10px; margin: 20px 0; }
.legal-gate-read { display: block; border: 1px solid var(--gate-border); border-radius: 12px; padding: 12px 14px; color: var(--gate-accent); text-decoration: none; font-weight: 700; }
.legal-gate-read:hover, .legal-gate-read:focus-visible { border-color: var(--gate-accent); outline: none; }
.legal-gate-messages { border-left: 4px solid var(--gate-accent); background: var(--gate-surface-soft); padding: 10px 14px; margin: 18px 0; }
.legal-gate-consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; padding: 16px; border: 1px solid var(--gate-border); border-radius: 14px; line-height: 1.5; cursor: pointer; }
.legal-gate-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gate-accent); }
.legal-gate-submit { width: 100%; display: block; margin-top: 16px; border: 0; border-radius: 13px; padding: 14px 18px; background: var(--gate-accent); color: #fff; font: inherit; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.legal-gate-submit:hover, .legal-gate-submit:focus-visible { background: var(--gate-accent-hover); outline: 3px solid rgba(15, 118, 110, 0.22); outline-offset: 2px; }
.legal-gate-submit--link { width: auto; }
.legal-gate-note { margin: 16px 0 0; font-size: 0.88rem; }

@media (max-width: 640px) {
  .legal-document-shell { width: 100%; padding: 0; }
  .legal-document-paper { border: 0; border-radius: 0; box-shadow: none; }
  .legal-document-cover { padding: 22px 18px 30px; }
  .legal-cover-topline { align-items: center; }
  .legal-logo-small { width: 112px; }
  .legal-cover-company { font-size: 0.72rem; }
  .legal-logo-main { width: min(360px, 88%); margin-top: 34px; }
  .legal-version-table > div { grid-template-columns: 1fr; }
  .legal-version-table dd { border-top: 1px solid #edf1ee; }
  .legal-document-nav { display: grid; }
  .legal-document-nav a { justify-content: center; }
  .legal-document-content { padding: 28px 20px; }
  .legal-gate-backdrop { padding: 10px; place-items: end center; }
  .legal-gate-dialog { width: 100%; max-height: calc(100vh - 20px); border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --gate-bg: #121817;
    --gate-surface: #1a2321;
    --gate-surface-soft: #202b28;
    --gate-text: #eef5f2;
    --gate-muted: #aebdb8;
    --gate-border: #33413d;
    --gate-accent: #42b8aa;
    --gate-accent-hover: #58cbbd;
    --gate-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  }
  .legal-gate-backdrop { background: radial-gradient(circle at top right, rgba(66, 184, 170, 0.14), transparent 36%), rgba(0, 0, 0, 0.58); }
  .legal-gate-submit, .legal-gate-brand { color: #10201d; }
}

.legal-center-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin-top: 18px;
  padding: 7px 11px;
  border: 1px solid var(--legal-line);
  border-radius: 8px;
  color: var(--legal-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-center-back:hover,
.legal-center-back:focus-visible {
  border-color: var(--legal-green);
  color: var(--legal-green);
  background: var(--legal-soft);
  outline: none;
}

/* Public data-deletion channel */
.privacy-request-section { background: linear-gradient(180deg, #fff 0%, #fbfdfb 100%); }
.privacy-request-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.privacy-request-heading h2 { margin-bottom: 0; }
.privacy-request-kicker { margin: 0 0 6px !important; color: var(--legal-green) !important; font-size: .76rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.privacy-request-badge { flex: 0 0 auto; border: 1px solid #cfe0d2; border-radius: 999px; padding: 7px 11px; color: var(--legal-green-dark); background: #f0f7f1; font-size: .75rem; font-weight: 800; }
.privacy-request-form { margin-top: 24px; }
.privacy-request-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.privacy-request-field { display: grid; gap: 7px; }
.privacy-request-field--full { grid-column: 1 / -1; }
.privacy-request-field label { color: #263128; font-size: .91rem; font-weight: 800; }
.privacy-request-field label span[aria-hidden="true"] { color: #a43d2f; }
.privacy-request-optional { margin-left: 5px; color: var(--legal-muted); font-size: .75rem; font-weight: 600; }
.privacy-request-field input:not([type="hidden"]), .privacy-request-field select, .privacy-request-field textarea { width: 100%; border: 1px solid #cbd8ce; border-radius: 9px; background: #fff; color: var(--legal-ink); font: inherit; line-height: 1.4; padding: 11px 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.privacy-request-field textarea { min-height: 128px; resize: vertical; }
.privacy-request-field input:focus, .privacy-request-field select:focus, .privacy-request-field textarea:focus { border-color: var(--legal-green); box-shadow: 0 0 0 3px rgba(46,111,62,.14); outline: none; }
.privacy-request-field small { color: var(--legal-muted); font-size: .78rem; line-height: 1.45; }
.privacy-request-error { color: #a43d2f; font-size: .8rem; line-height: 1.4; }
.privacy-request-error ul { margin: 0; padding-left: 18px; }
.privacy-request-alert { margin: 18px 0; border: 1px solid #e4b9b1; border-radius: 9px; background: #fff5f3; color: #7d2d23; padding: 11px 13px; }
.privacy-request-consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 22px; border: 1px solid #dce7df; border-radius: 10px; background: #f5f9f5; padding: 13px 14px; }
.privacy-request-consent p { margin: 0; color: #4f5d52; font-size: .83rem; line-height: 1.5; }
.privacy-request-consent-icon { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--legal-green); color: #fff; font-size: .78rem; font-weight: 800; }
.privacy-request-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; margin-top: 20px; border: 0; border-radius: 9px; padding: 11px 20px; background: var(--legal-green); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 6px 14px rgba(35,88,50,.18); }
.privacy-request-submit:hover, .privacy-request-submit:focus-visible { background: var(--legal-green-dark); outline: 3px solid rgba(46,111,62,.2); outline-offset: 2px; }
.privacy-request-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .privacy-request-heading { display: block; }
  .privacy-request-badge { display: inline-flex; margin-top: 12px; }
  .privacy-request-grid { grid-template-columns: 1fr; gap: 16px; }
  .privacy-request-field--full { grid-column: auto; }
  .privacy-request-submit { width: 100%; }
}
