/* Shared layout for legal policy pages */
body.legal-page {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(circle at top, #f1f5ff 0%, #ffffff 55%);
    color: #0f172a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-main {
    flex: 1;
    padding: clamp(5rem, 8vw, 7rem) 0 clamp(4rem, 6vw, 6rem);
}

.legal-container {
    width: min(840px, 100% - 3rem);
    margin: 0 auto;
}

.legal-policy-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.legal-policy-wrapper {
    background: #ffffff;
    border-radius: 22px;
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.legal-policy-wrapper [data-custom-class='body'] {
    max-width: 100%;
}

@media (max-width: 720px) {
    .legal-container {
        width: min(840px, 100% - 2rem);
    }

    .legal-policy-wrapper {
        padding: clamp(1.5rem, 6vw, 2rem);
    }
}

.legal-hero {
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.legal-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.5);
    margin-bottom: 1rem;
}

.legal-title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
}

.legal-subtitle {
    margin: 0 auto;
    max-width: 38rem;
    color: rgba(15, 23, 42, 0.65);
    font-size: 1.05rem;
    line-height: 1.65;
}

.legal-card {
    background: #ffffff;
    border-radius: 22px;
    padding: clamp(2rem, 4vw, 2.75rem);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.legal-placeholder {
    margin: 0;
    color: rgba(15, 23, 42, 0.7);
    font-size: 1rem;
    line-height: 1.65;
}

.legal-placeholder strong {
    color: #1d4ed8;
}

.legal-footer-gap {
    height: clamp(3rem, 6vw, 4rem);
}

/* Footer overrides */
body.legal-page .footer-otter {
    background: #020617;
    color: #ffffff;
    padding: clamp(5rem, 8vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
}

body.legal-page .footer-watermark {
    position: absolute;
    inset: auto auto clamp(1.5rem, 5vw, 2.5rem) clamp(1rem, 6vw, 4rem);
    font-size: clamp(6rem, 18vw, 11rem);
    opacity: 0.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    pointer-events: none;
}

body.legal-page .footer-content {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 3.5rem);
}

body.legal-page .footer-primary {
    max-width: clamp(24rem, 55vw, 32rem);
}

body.legal-page .footer-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.65;
}

body.legal-page .footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.25rem);
}

body.legal-page .footer-column h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #ffffff;
}

body.legal-page .footer-column a,
body.legal-page .footer-column span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    transition: color 0.2s ease;
}

body.legal-page .footer-column a:hover,
body.legal-page .footer-column a:focus {
    color: #ffffff;
}

body.legal-page .footer-bottom {
    margin-top: clamp(2.5rem, 5vw, 3rem);
    text-align: center;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    body.legal-page .footer-columns {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 600px) {
    .legal-title {
        font-size: clamp(2rem, 8vw, 2.4rem);
    }

    .legal-card {
        padding: clamp(1.6rem, 6vw, 2rem);
    }

    body.legal-page .footer-content {
        gap: 2rem;
    }

    body.legal-page .footer-columns {
        grid-template-columns: 1fr;
    }
}
