/* Reusable for Terms of Use, Privacy Policy and other legal pages */
.atwf-legal {
    --navy: #1f3f78;
    --crimson: #9b1b3a;
    --muted: #3a5489;
    --line: #e3e7ef;
    --tint: #f5f7fb;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--navy);
}
.atwf-legal a { color: var(--crimson); text-decoration: none; }
.atwf-legal a:hover { text-decoration: underline; }
.atwf-legal .atwf-site { color: var(--crimson); }

/* HEADER */
.atwf-legal-head {
    padding: 70px 20px 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--tint), #fff);
    border-bottom: 1px solid var(--line);
}
.atwf-legal-head h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -.01em;
}
.atwf-legal-head h1 span { color: var(--crimson); }
.atwf-legal-head h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 22px auto 0;
    background: var(--crimson);
    border-radius: 2px;
}

/* BODY */
.atwf-legal-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 50px 20px 80px;
    counter-reset: legal;
}
.atwf-legal-intro {
    margin: 0 0 40px;
    padding: 20px 24px;
    background: var(--tint);
    border-left: 4px solid var(--crimson);
    border-radius: 0 10px 10px 0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--muted);
}

/* SECTIONS */
.atwf-legal-section {
    position: relative;
    padding: 0 0 30px 62px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
}
.atwf-legal-section::before {
    counter-increment: legal;
    content: counter(legal);
    position: absolute;
    left: 0;
    top: -2px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
}
.atwf-legal-section h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 40px;
}
.atwf-legal-section p {
    margin: 0 0 12px;
    font-size: .98rem;
    line-height: 1.85;
    color: var(--muted);
}
.atwf-legal-section p:last-child { margin-bottom: 0; }

.atwf-legal-section ul {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}
.atwf-legal-section li {
    position: relative;
    padding: 0 0 0 22px;
    margin-bottom: 10px;
    font-size: .98rem;
    line-height: 1.75;
    color: var(--muted);
}
.atwf-legal-section li:last-child { margin-bottom: 0; }
.atwf-legal-section li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--crimson);
}

/* CLOSING */
.atwf-legal-closing {
    margin-top: 20px;
    padding: 30px 32px;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.atwf-legal-closing p {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.7;
}
.atwf-legal-closing p:last-child { margin-bottom: 0; }

/* MOBILE */
@media (max-width: 600px) {
    .atwf-legal-head { padding: 50px 20px 40px; }
    .atwf-legal-section { padding-left: 0; padding-top: 52px; }
    .atwf-legal-section::before { top: 0; }
    .atwf-legal-section h2 { line-height: 1.3; }
    .atwf-legal-closing { padding: 22px 20px; }
}