:root {
    --blue: #3b82f6;
    --blue-dark: #1d4ed8;
    --green: #10b981;
    --green-dark: #047857;
    --ink: #172033;
    --muted: #627087;
    --line: #dce5f1;
    --soft: #f4f8fd;
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(30, 64, 175, 0.09);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 5%, rgba(59, 130, 246, 0.12), transparent 26rem),
        radial-gradient(circle at 92% 22%, rgba(16, 185, 129, 0.10), transparent 24rem),
        #f8fafc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: var(--blue-dark);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--green-dark);
}

.site-header,
.site-footer,
main {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 800;
    text-decoration: none;
}

.brand img {
    border-radius: 12px;
}

.site-header nav,
.site-footer nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header nav a,
.site-footer nav a {
    font-weight: 700;
    text-decoration: none;
}

.button-link {
    padding: 10px 18px;
    color: var(--white) !important;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.legal-hero {
    padding: 68px 7%;
    color: var(--white);
    border-radius: 30px;
    background: linear-gradient(125deg, var(--blue) 0%, #238ed5 48%, var(--green) 100%);
    box-shadow: var(--shadow);
}

.legal-hero .eyebrow {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.88;
}

.legal-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.05;
}

.legal-hero > p:last-child {
    max-width: 720px;
    margin: 20px 0 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.94;
}

.legal-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 34px 0 64px;
}

.legal-summary,
.legal-card {
    border: 1px solid rgba(203, 213, 225, 0.85);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.legal-summary {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 4px;
    padding: 20px;
    border-radius: 20px;
}

.legal-summary strong {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-summary a {
    padding: 7px 9px;
    color: var(--ink);
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.legal-summary a:hover {
    color: var(--blue-dark);
    background: var(--soft);
}

.legal-card {
    padding: clamp(24px, 5vw, 58px);
    border-radius: 26px;
}

.legal-card section {
    scroll-margin-top: 22px;
}

.legal-card section + section {
    padding-top: 34px;
    margin-top: 34px;
    border-top: 1px solid var(--line);
}

.legal-card h2 {
    margin: 0 0 16px;
    color: #1e4fa4;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.25;
}

.legal-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.legal-card p,
.legal-card ul {
    margin: 0 0 16px;
}

.legal-card li + li {
    margin-top: 8px;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.contact-list div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.contact-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-list dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.information-box {
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 4px solid var(--green);
    border-radius: 0 14px 14px 0;
    background: #ecfdf5;
}

.information-box p {
    margin: 0;
}

.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--line);
    border-radius: 16px;
}

table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    background: var(--white);
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--white);
    background: #347ce5;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:nth-child(even) {
    background: #f8fbff;
}

.updated-at {
    margin: 42px 0 0 !important;
    color: var(--muted);
    font-size: 0.88rem;
    font-style: italic;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px 0 38px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--muted);
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
    color: var(--blue-dark);
}

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

    .legal-summary {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-summary strong {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .site-header,
    .site-footer,
    main {
        width: min(100% - 24px, 1180px);
    }

    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 18px;
    }

    .site-header nav,
    .site-footer nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .legal-hero {
        padding: 42px 24px;
        border-radius: 22px;
    }

    .legal-card {
        border-radius: 20px;
    }

    .legal-summary,
    .contact-list {
        grid-template-columns: 1fr;
    }

    .legal-summary strong {
        grid-column: auto;
    }
}

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

    .button-link {
        transition: none;
    }
}
