/* Legal pages only; footer presentation is intentionally unchanged. */
.legal-page {
    --legal-accent: #806011;
}

body.dark .legal-page {
    --legal-accent: #edce80;
}

.legal-page .seo-content {
    border-top: 3px solid var(--gold);
}

.legal-page .legal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
    gap: 0 12px;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #62502b;
    border-radius: 15px;
    background: radial-gradient(ellipse at 100% 0, #4d3a1c, transparent 75%), #1c1811;
    color: #fff9eb;
}

.legal-page .legal-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #edce80;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.legal-page .legal-hero h1 {
    margin: 0;
    color: #fff9eb;
    font-size: 1.4rem;
    line-height: 1.4;
}

.legal-page .legal-hero h1 > span {
    display: block;
    margin-top: 6px;
    color: #e8d7b8;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.7;
}

.legal-page .legal-hero h1 > span > [lang] {
    display: inline-block;
}

.legal-page .legal-hero-icon {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: #edce80;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-page .legal-updated {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(237, 206, 128, .2);
    color: #d9c9a9;
    font-size: .65rem;
    line-height: 1.6;
}

.legal-page .legal-updated time {
    color: #f3d996;
    white-space: nowrap;
}

.legal-page .legal-language-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.legal-page .legal-language-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.legal-page .legal-language-nav a:hover {
    border-color: var(--gold);
    color: var(--legal-accent);
}

.legal-page .legal-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 11px;
    background: var(--surface-soft);
}

.legal-page .legal-contact svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--legal-accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-page .legal-contact > div {
    min-width: 0;
}

.legal-page .legal-contact-label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-soft);
    font-size: .67rem;
    line-height: 1.6;
}

.legal-page .legal-contact-label [lang] {
    display: inline-block;
}

.legal-page .legal-contact a {
    color: var(--legal-accent);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.legal-page .legal-section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.legal-page .legal-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 1.05rem;
}

.legal-page .legal-language-number {
    display: inline-grid;
    flex: 0 0 30px;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--legal-accent);
    font-size: .7rem;
    font-variant-numeric: tabular-nums;
}

.legal-page .legal-section h3 {
    margin: 24px 0 10px;
    padding-left: 10px;
    border-left: 2px solid var(--gold);
    color: var(--text);
    font-size: .92rem;
    line-height: 1.5;
}

.legal-page .legal-section p,
.legal-page .legal-section li {
    font-size: .86rem;
    line-height: 1.85;
}

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

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

.legal-page .legal-section li strong {
    color: var(--text);
}

.legal-page a:focus-visible {
    outline: 2px solid var(--legal-accent);
    outline-offset: 3px;
    border-radius: 3px;
}

@media (max-width: 360px) {
    .legal-page .legal-hero {
        gap: 0 10px;
        padding: 16px;
    }

    .legal-page .legal-hero h1 {
        font-size: 1.25rem;
    }

    .legal-page .legal-contact svg {
        display: none;
    }
}
