* {
    box-sizing: border-box;
}

body.legal-page-body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(202, 152, 86, 0.14), transparent 34%),
        linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    color: #172033;
    font-family: Inter, Arial, sans-serif;
}

.legal-page-shell {
    min-height: 100vh;
    padding: 28px;
}

.legal-page-topbar,
.legal-page-container,
.legal-page-footer {
    width: min(1060px, 100%);
    margin: 0 auto;
}

.legal-page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.legal-page-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #172033;
    font-weight: 900;
    text-decoration: none;
}

.legal-page-brand img {
    display: block;
    width: 168px;
    max-height: 56px;
    object-fit: contain;
}

.legal-page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.legal-page-link,
.legal-page-button {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    text-decoration: none;
}

.legal-page-link {
    color: #475569;
}

.legal-page-link:hover {
    color: #172033;
}

.legal-page-button {
    background: #172033;
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(23, 32, 51, 0.16);
}

.legal-page-container {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.legal-page-hero {
    background:
        linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(36, 49, 71, 0.94)),
        linear-gradient(120deg, rgba(202, 152, 86, 0.24), transparent);
    color: #ffffff;
    padding: clamp(34px, 6vw, 62px);
}

.legal-page-eyebrow {
    background: rgba(202, 152, 86, 0.18);
    border: 1px solid rgba(202, 152, 86, 0.35);
    border-radius: 999px;
    color: #f6d39c;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    padding: 7px 12px;
    text-transform: uppercase;
}

.legal-page-hero h1 {
    font-size: clamp(34px, 6vw, 60px);
    letter-spacing: -0.02em;
    line-height: 1.02;
    margin: 0 0 18px;
}

.legal-page-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.65;
    margin: 0;
    max-width: 790px;
}

.legal-page-content {
    display: grid;
    gap: 24px;
    padding: clamp(26px, 5vw, 56px);
}

.legal-page-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    color: #7c2d12;
    line-height: 1.58;
    padding: 18px 20px;
}

.legal-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.legal-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.legal-section h2 {
    color: #172033;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.18;
    margin: 0 0 12px;
}

.legal-section p,
.legal-section li {
    color: #475569;
    font-size: 16px;
    line-height: 1.72;
}

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

.legal-section ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 20px;
}

.legal-page-footer {
    align-items: center;
    color: #64748b;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 22px;
    padding-bottom: 8px;
}

.legal-page-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.legal-page-footer a {
    color: #334155;
    font-weight: 800;
    text-decoration: none;
}

.legal-page-footer a:hover {
    color: #172033;
    text-decoration: underline;
}

@media (max-width: 720px) {
    .legal-page-shell {
        padding: 18px;
    }

    .legal-page-topbar,
    .legal-page-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-page-actions,
    .legal-page-footer nav {
        justify-content: flex-start;
    }

    .legal-page-brand img {
        width: 148px;
    }
}
