:root {
    color-scheme: light dark;
    --background: #fff7fa;
    --surface: #ffffff;
    --surface-muted: #fff0f5;
    --text: #30242a;
    --muted: #705f67;
    --accent: #b64d78;
    --accent-strong: #842e55;
    --border: #ead3dd;
    --shadow: 0 16px 45px rgba(82, 38, 57, 0.10);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #171115;
        --surface: #21191e;
        --surface-muted: #2c2026;
        --text: #f8edf2;
        --muted: #d0b9c3;
        --accent: #f0a9c6;
        --accent-strong: #ffd0e2;
        --border: #523845;
        --shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

a {
    color: var(--accent-strong);
    text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
    text-decoration-thickness: 0.15em;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
    padding: 0.75rem 1rem;
    background: var(--surface);
    color: var(--text);
    transform: translateY(-120%);
}

.skip-link:focus {
    transform: translateY(0);
}

.top-navigation {
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(82, 38, 57, 0.08);
}

.page-header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.header-inner,
main,
.page-footer {
    width: min(100% - 2rem, 980px);
    margin-inline: auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 750;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--surface-muted);
    color: var(--accent-strong);
    font-size: 1.4rem;
}

.language-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.language-links a {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    text-decoration: none;
}

main {
    padding-block: 3.2rem 4rem;
}

.hero,
.policy {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero {
    padding: clamp(1.4rem, 4vw, 3rem);
    background:
        radial-gradient(circle at top right, var(--surface-muted), transparent 44%),
        var(--surface);
}

.eyebrow {
    margin: 0 0 0.35rem;
    color: var(--accent-strong);
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 3.7rem);
}

h2 {
    margin-top: 0;
    font-size: clamp(1.55rem, 4vw, 2.25rem);
}

h3 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

.lead {
    max-width: 70ch;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.1rem;
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.policy {
    margin-top: 1.5rem;
    padding: clamp(1.4rem, 4vw, 3rem);
    scroll-margin-top: 1rem;
}

.summary {
    border-left: 4px solid var(--accent);
    border-radius: 0 16px 16px 0;
    margin-block: 1.5rem;
    padding: 1rem 1.2rem;
    background: var(--surface-muted);
}

.summary p:first-child,
.policy section p:first-child {
    margin-top: 0;
}

.summary p:last-child,
.policy section p:last-child {
    margin-bottom: 0;
}

.toc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.toc a {
    display: block;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    background: var(--surface-muted);
    text-decoration: none;
}

section {
    scroll-margin-top: 1rem;
}

section + section {
    border-top: 1px solid var(--border);
    margin-top: 2.4rem;
    padding-top: 2rem;
}

ul {
    padding-left: 1.3rem;
}

li + li {
    margin-top: 0.45rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 1.25rem;
    font-size: 0.96rem;
}

.data-table th,
.data-table td {
    border: 1px solid var(--border);
    padding: 0.8rem;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--surface-muted);
}

.contact-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.1rem 1.25rem;
    background: var(--surface-muted);
}

.page-footer {
    padding-block: 0 3rem;
    color: var(--muted);
    text-align: center;
    font-size: 0.92rem;
}

@media (max-width: 620px) {
    html {
        scroll-padding-top: 9rem;
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 0.8rem;
    }

    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table tr,
    .data-table th,
    .data-table td {
        display: block;
    }

    .data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .data-table tr + tr {
        margin-top: 1rem;
    }

    .data-table td::before {
        display: block;
        margin-bottom: 0.25rem;
        color: var(--muted);
        content: attr(data-label);
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
    }
}

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