/**
 * Legal document pages (privacy policy, accessibility statement).
 * Scoped to the "Legal" page template so nothing else on the site is affected.
 */

/* ---------- Hero ---------- */
.legal_hero {
    background: linear-gradient(135deg, #041423 0%, #193B69 100%);
    padding: 92px 0 64px;
    position: relative;
    overflow: hidden;
}

.legal_hero:after {
    content: "";
    position: absolute;
    inset-inline-start: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(202, 168, 85, 0.10);
}

.legal_hero_inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.legal_hero_ttl {
    font-weight: 700;
    font-size: 60px;
    line-height: 1.15;
    /* The global h1 rule sets text-align:right, so it must be overridden here. */
    text-align: center;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 18px;
}

.legal_hero_decor {
    max-width: 220px;
    height: auto;
}

/* ---------- Page shell ---------- */
/*
 * The site footer uses margin-top:-120px so its gold form box overlaps the
 * section above it. Every page therefore has to reserve that space at the
 * bottom, the same way the theme's .before_footer helper does (180px).
 * Without it the footer climbs over the contact card.
 */
.legal_page {
    display: block;
    padding: 70px 0 200px;
    background: #fff;
}

.legal_content {
    max-width: 880px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.85;
    color: #364960;
}

/* Last-updated meta line */
.legal_content > p:first-child {
    display: inline-block;
    background: #F3F9FD;
    border-inline-start: 4px solid #caa855;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    color: #193B69;
    margin-bottom: 46px;
}

.legal_content > p:first-child strong { font-weight: 700; }

/* ---------- Headings ---------- */
.legal_content h2 {
    font-weight: 700;
    font-size: 30px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #041423;
    margin: 54px 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E4EDF5;
    position: relative;
}

.legal_content h2:after {
    content: "";
    position: absolute;
    bottom: -1px;
    inset-inline-start: 0;
    width: 56px;
    height: 3px;
    background: #caa855;
    border-radius: 2px;
}

.legal_content h2:first-of-type { margin-top: 0; }

.legal_content h3 {
    font-weight: 700;
    font-size: 22px;
    color: #193B69;
    margin: 34px 0 14px;
}

/* ---------- Body copy ---------- */
.legal_content p { margin: 0 0 20px; }

.legal_content strong { color: #041423; font-weight: 700; }

.legal_content a {
    color: #193B69;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color .2s ease;
}

.legal_content a:hover,
.legal_content a:focus { color: #caa855; }

/* ---------- Lists ---------- */
.legal_content ul {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.legal_content ul li {
    position: relative;
    padding-inline-start: 30px;
    margin-bottom: 13px;
}

.legal_content ul li:before {
    content: "";
    position: absolute;
    inset-inline-start: 8px;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #caa855;
}

.legal_content ol {
    margin: 0 0 26px;
    padding-inline-start: 24px;
}

.legal_content ol li { margin-bottom: 13px; }

/* ---------- Contact card ---------- */
.legal_contact_card {
    max-width: 880px;
    margin: 64px auto 0;
    background: #F3F9FD;
    border: 1px solid #E4EDF5;
    border-radius: 14px;
    padding: 34px 38px;
}

.legal_contact_ttl {
    font-weight: 700;
    font-size: 24px;
    color: #041423;
    margin: 0 0 20px;
}

.legal_contact_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 46px;
}

.legal_contact_list li {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.legal_contact_label {
    font-size: 14px;
    color: #6E7A8C;
}

.legal_contact_list a,
.legal_contact_list li > span:last-child {
    font-weight: 700;
    font-size: 18px;
    color: #193B69;
    text-decoration: none;
}

.legal_contact_list a:hover,
.legal_contact_list a:focus { color: #caa855; }

/* ---------- Keyboard focus ---------- */
.legal_page a:focus-visible,
.legal_hero a:focus-visible {
    outline: 3px solid #caa855;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .legal_hero { padding: 70px 0 48px; }
    .legal_hero_ttl { font-size: 42px; }
    .legal_page { padding: 50px 0 190px; }
    .legal_content { font-size: 17px; }
    .legal_content h2 { font-size: 25px; margin-top: 42px; }
}

@media (max-width: 575px) {
    .legal_hero { padding: 56px 0 40px; }
    .legal_hero_ttl { font-size: 32px; }
    .legal_hero_decor { max-width: 160px; }
    .legal_content h2 { font-size: 22px; }
    .legal_contact_card { padding: 26px 22px; }
    .legal_contact_list { gap: 16px 0; flex-direction: column; }
}
