:root {
    color-scheme: light;
    --legal-accent: #b4080a;
    --legal-text: #242424;
    --legal-muted: #666;
    --legal-line: #dedede;
    --legal-bg: #f5f5f5;
}

* { box-sizing: border-box; }

body.legal-page {
    margin: 0;
    background: var(--legal-bg);
    color: var(--legal-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.legal-wrap {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

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

.legal-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.legal-brand { display: inline-flex; }
.legal-brand img { display: block; }
.legal-back, .legal-content a, .legal-page-footer a { color: #8f0708; }

.legal-nav {
    background: #2f2f2f;
    color: #fff;
}

.legal-nav__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.legal-nav a { color: #fff; text-decoration: none; font-size: 14px; }
.legal-nav a:hover, .legal-nav a:focus { text-decoration: underline; }

.legal-content {
    margin-top: 28px;
    margin-bottom: 40px;
    padding: 32px clamp(20px, 5vw, 56px);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.legal-content h1 { margin-top: 0; line-height: 1.2; font-size: clamp(28px, 4vw, 42px); }
.legal-content h2 { margin-top: 1.8em; line-height: 1.3; font-size: 22px; }
.legal-lead { font-size: 18px; color: #454545; }
.legal-content li + li { margin-top: 6px; }

.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
.legal-table th, .legal-table td { padding: 12px; border: 1px solid var(--legal-line); text-align: left; vertical-align: top; }
.legal-table th { background: #f0f0f0; }

.legal-card { padding: 22px; border: 1px solid var(--legal-line); border-left: 5px solid var(--legal-accent); }
.legal-details { display: grid; grid-template-columns: minmax(190px, 280px) 1fr; gap: 12px 24px; margin: 0; }
.legal-details dt { font-weight: 700; }
.legal-details dd { margin: 0; }

.legal-page-footer {
    padding: 20px 0;
    background: #242424;
    color: #ddd;
    font-size: 13px;
}
.legal-page-footer p { margin: 4px 0; }

@media (max-width: 680px) {
    .legal-header__inner { min-height: 62px; }
    .legal-content { margin-top: 16px; padding: 22px 18px; }
    .legal-details { grid-template-columns: 1fr; gap: 2px; }
    .legal-details dd { margin-bottom: 12px; }
}

/* Shared notice rendered on the legacy main page. */
.pe-legal-strip {
    position: fixed;
    z-index: 10001;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 16px 9px;
    background: rgba(31, 31, 31, .96);
    color: #fff;
    font: 11px/1.45 Arial, sans-serif;
    text-align: center;
}
.pe-owner-details {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4px;
}
.pe-owner-details summary {
    cursor: pointer;
    font-weight: 700;
    white-space: normal;
}
.pe-owner-details-label { text-decoration: underline; text-decoration-style: dotted; }
.pe-owner-expanded {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 14px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .28);
}
.pe-owner-expanded strong { font-weight: 700; }
.pe-legal-links { display: block; }
.pe-legal-strip a, .pe-legal-strip button {
    color: #fff;
    margin: 2px 7px;
}
.pe-cookie-settings {
    padding: 0;
    border: 0;
    border-bottom: 1px dotted currentColor;
    background: transparent;
    cursor: pointer;
    font: inherit;
}
.pe-cookie-banner {
    position: fixed;
    z-index: 10002;
    left: 20px;
    right: 20px;
    bottom: 66px;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid #d2d2d2;
    border-radius: 6px;
    background: #fff;
    color: #242424;
    box-shadow: 0 8px 35px rgba(0, 0, 0, .35);
    font: 14px/1.5 Arial, sans-serif;
}
.pe-cookie-banner[hidden] { display: none !important; }
.pe-cookie-banner p { margin: 0 0 14px; }
.pe-cookie-banner a { color: #8f0708; }
.pe-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.pe-cookie-button {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #a6a6a6;
    border-radius: 4px;
    background: #f3f3f3;
    color: #222;
    cursor: pointer;
    font-weight: 700;
}
.pe-cookie-button--primary { border-color: #a20809; background: #b4080a; color: #fff; }
.pe-cookie-button:focus, .pe-cookie-settings:focus { outline: 3px solid #f2c94c; outline-offset: 2px; }

@media (max-width: 620px) {
    .pe-legal-strip { max-height: 168px; overflow-y: auto; }
    .pe-owner-details { text-align: left; }
    .pe-owner-details summary span { display: inline; }
    .pe-owner-expanded { display: block; text-align: left; }
    .pe-owner-expanded > * { display: block; margin: 3px 0; }
    .pe-legal-links { margin-top: 6px; }
    .pe-cookie-banner { left: 10px; right: 10px; bottom: 104px; max-height: calc(100vh - 120px); overflow-y: auto; }
    .pe-cookie-actions { justify-content: stretch; }
    .pe-cookie-button { flex: 1 1 100%; }
}
