:root {
    --navy-950: #080d20;
    --navy-900: #111936;
    --navy-800: #1b2750;
    --blue: #1976f3;
    --blue-light: #8fc2ff;
    --coral: #ff5249;
    --coral-dark: #dc312f;
    --cream: #f7f5ef;
    --paper: #ffffff;
    --ink: #12172a;
    --muted: #646b7f;
    --line: rgba(18, 23, 42, 0.12);
    --shadow: 0 32px 90px rgba(4, 10, 29, 0.28);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.045em;
    line-height: 1.03;
}

h1 {
    max-width: 760px;
    margin-bottom: 26px;
    font-size: clamp(3.4rem, 7.2vw, 7.1rem);
    font-weight: 840;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2.5rem, 5.2vw, 5rem);
    font-weight: 810;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.48rem;
}

.shell {
    width: min(1220px, calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding: 124px 0;
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--paper);
    transform: translateY(-170%);
}

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

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 13, 32, 0.9);
    color: var(--paper);
    backdrop-filter: blur(22px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 780;
    text-decoration: none;
}

.brand img {
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.desktop-nav {
    display: flex;
    margin-left: auto;
    gap: 30px;
}

.desktop-nav a,
.footer-links a {
    text-decoration: none;
}

.desktop-nav a:hover,
.footer-links a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.language-switcher {
    position: relative;
}

.language-switcher summary {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.88rem;
    list-style: none;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: 160px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.language-menu a {
    padding: 11px 16px;
    text-decoration: none;
}

.language-menu a:hover,
.language-menu a[aria-current="page"] {
    background: #edf4ff;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--blue-light);
    font-size: 0.8rem;
    font-weight: 820;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow-dark {
    color: var(--blue);
}

.button {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 17px;
    font-weight: 780;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--coral);
    box-shadow: 0 15px 36px rgba(255, 82, 73, 0.25);
    color: var(--paper);
}

.button-primary:hover {
    background: var(--coral-dark);
}

.button-light {
    background: var(--paper);
    color: var(--navy-950);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.button-light:hover {
    background: #eaf2ff;
}

.section-heading {
    display: grid;
    align-items: end;
    margin-bottom: 58px;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    column-gap: 80px;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
}

.section-heading h2 {
    max-width: 830px;
    margin-bottom: 0;
}

.section-heading > p:last-child {
    margin-bottom: 8px;
    color: var(--muted);
}

.section-heading-compact {
    display: block;
    max-width: 820px;
}

.section-heading-compact h2 {
    margin-bottom: 0;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.example-card {
    min-height: 330px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--cream);
}

.example-card:nth-child(2) {
    background: #eaf2ff;
}

.example-card:nth-child(3) {
    background: #ffe8e4;
}

.example-card:nth-child(4) {
    background: var(--navy-900);
    color: var(--paper);
}

.example-card > span {
    display: block;
    margin-bottom: 82px;
    color: var(--coral);
    font-size: 2.7rem;
    line-height: 1;
}

.example-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.example-card:nth-child(4) p {
    color: rgba(255, 255, 255, 0.65);
}

.faq-grid {
    display: grid;
    align-items: start;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 90px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    position: relative;
    padding: 24px 50px 24px 0;
    cursor: pointer;
    font-size: 1.13rem;
    font-weight: 760;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    position: absolute;
    top: 21px;
    right: 4px;
    color: var(--blue);
    content: "+";
    font-size: 1.55rem;
    font-weight: 500;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    max-width: 680px;
    margin-bottom: 24px;
    color: var(--muted);
}

.site-footer {
    padding: 48px 0;
    background: var(--navy-950);
    color: var(--paper);
}

.footer-inner {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 28px 60px;
}

.footer-links {
    display: flex;
    gap: 26px;
}

.site-footer small {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.46);
}

.legal-page {
    min-height: 70vh;
    padding: 96px 0 120px;
    background: var(--paper);
}

.legal-layout {
    max-width: 900px;
}

.back-link {
    display: inline-block;
    margin-bottom: 52px;
    color: var(--blue);
    font-weight: 740;
    text-decoration: none;
}

.legal-page h1 {
    max-width: none;
    margin-bottom: 18px;
    font-size: clamp(3rem, 7vw, 5.8rem);
    overflow-wrap: anywhere;
}

.legal-updated {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 0.9rem;
}

.legal-intro {
    max-width: 720px;
    margin-bottom: 64px;
    font-size: 1.28rem;
}

.legal-sections {
    display: grid;
    gap: 44px;
}

.legal-sections section,
.legal-contact {
    max-width: 760px;
}

.legal-sections h2,
.legal-contact h2 {
    margin-bottom: 16px;
    font-size: 2rem;
}

.legal-sections p,
.legal-contact p {
    color: var(--muted);
}

.legal-contact {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.legal-contact a {
    color: var(--blue);
}

@media (max-width: 980px) {
    .example-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 32px, 1220px);
    }

    .section {
        padding: 84px 0;
    }

    .header-inner {
        min-height: 68px;
    }

    .brand span {
        display: none;
    }

    .desktop-nav {
        display: none;
    }

    .language-switcher {
        margin-left: auto;
    }

    .section-heading {
        display: block;
        margin-bottom: 40px;
    }

    .section-heading h2 {
        margin-bottom: 20px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: clamp(3rem, 16vw, 4.6rem);
    }

    .button {
        width: 100%;
    }

    .example-grid {
        grid-template-columns: 1fr;
    }

    .example-card {
        min-height: 280px;
    }

    .footer-inner {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .legal-page h1 {
        font-size: 2.5rem;
        hyphens: manual;
        overflow-wrap: normal;
    }

    .footer-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .site-footer small {
        grid-column: auto;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
