:root {
    --ink: #f2f3f5;
    --muted: #b6bac3;
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(197, 160, 77, 0.42);
    --paper: #22252a;
    --paper-soft: #2b2e34;
    --brand: #c5a04d;
    --brand-dark: #f0cf7a;
    --accent: #c5a04d;
    --shell-a: #181a1e;
    --shell-b: #272a30;
    --shadow: rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background-color: var(--shell-a);
    background-image:
        radial-gradient(circle at 50% -10%, rgba(226, 229, 233, 0.16), transparent 36%),
        repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(22deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 5px),
        linear-gradient(180deg, #1d2024 0%, #292c31 42%, #181a1e 100%);
    line-height: 1.62;
}

.legal-page {
    min-height: 100vh;
    padding: 26px 18px 42px;
}

.legal-shell {
    max-width: 1040px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(43, 46, 52, 0.98) 0%, rgba(28, 30, 35, 0.98) 100%);
    border: 1px solid rgba(226, 229, 233, 0.12);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 48px var(--shadow);
}

.legal-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(226, 229, 233, 0.12);
    background: linear-gradient(180deg, rgba(49,52,58,0.96) 0%, rgba(35,38,43,0.96) 100%);
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.legal-brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(55,58,64,0.96) 0%, rgba(36,39,44,0.94) 100%);
    border: 1px solid rgba(226, 229, 233, 0.12);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06), inset 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
    flex: 0 0 auto;
}

.legal-brand-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.legal-brand-copy {
    min-width: 0;
}

.legal-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.legal-company-name {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--brand-dark);
}

.legal-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.language-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, auto);
    gap: 4px;
    padding: 3px;
    border: 1px solid rgba(226, 229, 233, 0.16);
    border-radius: 999px;
    background: rgba(20,22,26,0.72);
}

.language-switch input {
    display: none;
}

.language-switch label,
.print-button {
    appearance: none;
    border: 1px solid rgba(226, 229, 233, 0.16);
    background: linear-gradient(180deg, rgba(55,58,64,0.96) 0%, rgba(34,37,42,0.96) 100%);
    color: var(--muted);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 8px 16px rgba(17,24,39,0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.language-switch label {
    border-color: transparent;
    min-width: 48px;
    text-align: center;
}

.language-switch input:checked + label {
    background: linear-gradient(180deg, rgba(209,176,106,0.26) 0%, rgba(126,95,38,0.22) 100%);
    color: var(--brand);
    border-color: rgba(209, 176, 106, 0.38);
}

.language-switch label:hover,
.print-button:hover {
    transform: translateY(-1px);
    border-color: rgba(209, 176, 106, 0.48);
}

.legal-hero {
    padding: 28px 30px 24px;
    background:
        linear-gradient(135deg, rgba(209,176,106,0.13), transparent 42%),
        linear-gradient(180deg, rgba(48,51,57,0.96) 0%, rgba(35,38,43,0.96) 100%);
    border-bottom: 1px solid rgba(226, 229, 233, 0.10);
}

.legal-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
}

.legal-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.08;
    color: var(--brand-dark);
}

.legal-subtitle {
    margin: 0;
    font-size: 17px;
    color: var(--muted);
    max-width: 48ch;
}

.legal-meta {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(49,52,58,0.98) 0%, rgba(32,35,40,0.96) 100%);
    border: 1px solid rgba(226, 229, 233, 0.12);
    border-radius: 18px;
}

.legal-meta-title {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}

.legal-meta dl {
    display: grid;
    grid-template-columns: minmax(110px, auto) 1fr;
    gap: 6px 10px;
    margin: 0;
}

.legal-meta dt {
    font-weight: 700;
    color: var(--ink);
}

.legal-meta dd {
    margin: 0;
    color: var(--muted);
}

.legal-content {
    padding: 28px 30px 34px;
}

.legal-loading {
    padding: 8px 0 2px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.legal-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(226, 229, 233, 0.10);
}

.legal-section:last-child {
    border-bottom: none;
    padding-bottom: 8px;
}

.legal-section h2 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
    color: var(--brand-dark);
}

.legal-section p {
    margin: 0 0 12px;
}

.legal-section ul {
    margin: 0 0 12px 22px;
    padding: 0;
}

.legal-section li {
    margin: 0 0 7px;
}

.legal-callout {
    margin: 22px 0 0;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(226, 229, 233, 0.12);
    background: linear-gradient(180deg, rgba(49,52,58,0.96) 0%, rgba(34,37,42,0.92) 100%);
}

.legal-callout p:last-child {
    margin-bottom: 0;
}

.legal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(226, 229, 233, 0.12);
    color: var(--muted);
    font-size: 14px;
}

.legal-footer a {
    color: var(--brand-dark);
}

a {
    color: var(--brand-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 840px) {
    .legal-hero-grid {
        grid-template-columns: 1fr;
    }

    .legal-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .legal-page {
        padding: 12px;
    }

    .legal-shell {
        border-radius: 18px;
    }

    .legal-hero,
    .legal-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .legal-title {
        font-size: 28px;
    }

    .legal-subtitle {
        font-size: 15px;
    }

    .legal-meta dl {
        grid-template-columns: 1fr;
    }

    .legal-footer {
        font-size: 13px;
    }

    .legal-brand-mark {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .legal-brand-logo {
        width: 38px;
        height: 38px;
    }
}

@media print {
    * {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        filter: none !important;
    }

    @page {
        margin: 14mm;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .legal-page {
        padding: 0;
    }

    .legal-shell {
        box-shadow: none;
        border: none;
        border-radius: 0;
        max-width: none;
    }

    .legal-topbar {
        display: none !important;
    }

    .legal-hero {
        padding: 0 0 10mm;
        border-bottom: 1px solid #cfcfcf;
    }

    .legal-section,
    .legal-meta,
    .legal-callout {
        break-inside: avoid;
    }

    .legal-shell,
    .legal-hero,
    .legal-meta,
    .legal-callout,
    .legal-brand-mark {
        background: transparent !important;
        border-color: #d5d5d5 !important;
    }

    .legal-brand-mark {
        display: none !important;
    }

    .legal-content {
        padding: 0;
    }

    .legal-callout {
        margin-top: 8mm;
        padding: 0;
        border: none !important;
    }

    .legal-footer {
        margin-top: 8mm;
        padding-top: 5mm;
        border-top: 1px solid #d5d5d5;
        color: #000 !important;
    }

    .legal-title,
    .legal-subtitle,
    .legal-company-name,
    .legal-eyebrow,
    .legal-meta dt,
    .legal-meta dd,
    .legal-section h2,
    .legal-section p,
    .legal-section li {
        color: #000 !important;
    }

    .legal-brand-mark {
        box-shadow: none;
    }

    a {
        color: #000 !important;
        text-decoration: none;
    }
}


@media print {
  html,
  body,
  .legal-page,
  .legal-shell {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  body {
    min-width: 0 !important;
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy;
  }

  .legal-meta {
    border: 1px solid #b8b8b8 !important;
  }

  .legal-section {
    border-bottom: 1px solid #d5d5d5 !important;
  }
}


/* Print canvas correction: force the physical page and margin area to light mode. */
@media print {
  @page {
    margin: 14mm;
    background: #fff;
  }

  :root,
  html {
    color-scheme: light !important;
    background: #fff !important;
  }

  body,
  .legal-page,
  .legal-shell {
    background-color: #fff !important;
    background-image: none !important;
    forced-color-adjust: none;
  }
}
