@font-face {
    font-family: 'Nunito';
    src: url('/fonts/Nunito-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    color: #000;
    background: #fff;
    font-family: 'Nunito', Arial, sans-serif;
    font-weight: 400;
    --accent: #a63e21;
    --line: #e8e4e1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-gutter: stable;
}

body {
    min-width: 280px;
    background: #fff;
}

a {
    color: inherit;
    text-underline-offset: 4px;
}

.container,
.header-inner {
    width: min(1050px, calc(100% - 48px));
    margin-inline: auto;
}

.legal-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-block: 8px;
}

.company-logos {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
}

.legal-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.legal-breadcrumbs {
    padding-block: 18px;
}

.legal-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    list-style: none;
    font-size: 13px;
    line-height: 1.6;
}

.legal-breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-breadcrumbs li + li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 1px solid #b68a77;
    border-right: 1px solid #b68a77;
    transform: rotate(45deg);
}

.legal-breadcrumbs a {
    text-decoration: none;
    color: #514b46;
}

.legal-breadcrumbs a:hover {
    text-decoration: underline;
}

.legal-breadcrumbs [aria-current='page'] {
    font-weight: 600;
}

.legal-hero {
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
    align-items: center;
    gap: 40px;
    padding-block: 20px 28px;
}

.legal-intro {
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin-bottom: 10px;
}

h1 {
    color: #843019;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.legal-intro > p:last-child {
    font-size: 15px;
    line-height: 1.75;
}

strong {
    font-weight: 650;
}

.hero-illustration {
    width: 350px;
    max-width: none;
    height: 180px;
    justify-self: center;
    stroke: #dfa888;
    stroke-width: 1;
    opacity: 0.5;
    pointer-events: none;
}

.legal-main {
    padding-block: 28px 56px;
    min-height: 280px;
}

.company-selector {
    display: inline-flex;
    gap: 16px;
    max-width: 100%;
    margin-bottom: 0;
}

.company-selector a,
.company-selector button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: var(--accent);
}

.company-selector .active {
    background: var(--accent);
    color: #fff;
}

.company-selector button:disabled {
    opacity: 1;
    cursor: default;
}

.company-selector a:not(.active):hover {
    background: var(--accent);
    color: #fff;
}

h2 {
    font-size: 18px;
    font-weight: 650;
    line-height: 1.5;
    margin-bottom: 16px;
}

.company-empty {
    max-width: 620px;
    padding: 8px 0;
}

.company-empty p {
    color: #514b46;
    line-height: 1.7;
    font-size: 14px;
}

.documents {
    display: grid;
    gap: 8px;
}

details {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 13px 16px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
}

summary::-webkit-details-marker {
    display: none;
}

.document-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 20px;
    color: var(--accent);
}

.document-title,
.section-title {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.chevron {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin: -4px 4px 0;
    border-right: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(45deg);
}

details[open] > summary > .chevron {
    transform: rotate(225deg);
    margin-top: 4px;
}

.document-content {
    padding: 0 16px 18px;
}

.policy-section {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.policy-section:last-child {
    border-bottom: 0;
}

.policy-section > summary {
    padding: 12px 0;
    gap: 10px;
    font-weight: 600;
}

.policy-section > summary::before {
    content: '•';
    color: var(--accent);
}

.section-body {
    padding: 0 12px 12px;
    overflow-wrap: anywhere;
}

.document-content p,
.policy-list {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.75;
    color: #000;
}

.policy-list {
    padding-left: 22px;
    list-style: disc;
}

.policy-list li + li {
    margin-top: 8px;
}

.policy-list li::marker {
    color: var(--accent);
}

details[open] > .document-content,
.policy-section[open] > .section-body {
    animation: reveal-content 240ms ease-out;
}

@keyframes reveal-content {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.legal-footer {
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-block: 22px;
    font-size: 12px;
    line-height: 1.7;
    color: #514b46;
}

.legal-footer a {
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10;
    transform: translateY(-200%);
    padding: 10px 16px;
    background: #fff;
    color: #000;
}

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

@media (max-width: 760px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
        padding-block: 10px;
    }

    .company-selector {
        display: flex;
        width: 100%;
        max-width: 420px;
        gap: 10px;
    }

    .company-selector a,
    .company-selector button {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .header-inner {
        gap: 10px;
        padding-block: 8px;
    }

    .company-logos {
        width: 230px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        padding-block: 16px 24px;
    }

    .hero-illustration {
        position: absolute;
        right: -160px;
        top: 0;
        height: 100%;
        opacity: 0.15;
    }

    .legal-main {
        padding-block: 24px 40px;
    }

    .company-selector {
        display: flex;
        width: 100%;
    }

    .company-selector a,
    .company-selector button {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        font-size: 13px;
    }

    summary {
        padding: 12px 14px;
    }

    .document-content {
        padding: 0 14px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    details[open] > .document-content,
    .policy-section[open] > .section-body {
        animation: none;
    }
}
