/* Legal pages styling */
:root {
    --legal-bg-start: #0f0f0f;
    --legal-bg-end: #1f1f1f;
    --legal-card-bg: rgba(26, 26, 26, 0.85);
    --legal-accent: #ffd700;
    --legal-accent-dark: #c7a600;
    --legal-text: #f5f5f5;
    --legal-muted: #cccccc;
    --legal-border: rgba(255, 215, 0, 0.2);
    --legal-spacing: clamp(1.5rem, 2vw + 1rem, 3rem);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--legal-bg-start), var(--legal-bg-end));
    color: var(--legal-text);
    line-height: 1.7;
}

a {
    color: var(--legal-accent);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--legal-accent-dark);
    text-decoration: underline;
    text-decoration-color: var(--legal-accent-dark);
}

.legal-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: calc(var(--legal-spacing) * 1.2) clamp(1rem, 4vw, 2.5rem) var(--legal-spacing);
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(2rem, 3vw, 3.5rem);
}

.legal-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.legal-brand .brand-name {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--legal-accent);
}

.legal-brand .brand-tagline {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    color: var(--legal-muted);
}

.legal-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--legal-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--legal-text);
    font-weight: 600;
}

.legal-header .back-link:hover,
.legal-header .back-link:focus {
    background: rgba(255, 215, 0, 0.12);
    color: var(--legal-accent);
}

.legal-card {
    background: var(--legal-card-bg);
    border: 1px solid var(--legal-border);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--legal-muted);
    font-size: 0.95rem;
}

.legal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.legal-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.2;
    color: var(--legal-text);
}

.legal-intro {
    font-size: 1.05rem;
    color: var(--legal-muted);
    margin-bottom: clamp(2rem, 2.5vw, 2.75rem);
}

.legal-section {
    margin-bottom: clamp(2rem, 3vw, 2.75rem);
}

.legal-section:last-of-type {
    margin-bottom: 0;
}

.legal-section h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    color: var(--legal-accent);
}

.legal-section p {
    margin: 0 0 1rem;
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 1.25rem 1.25rem;
    padding: 0;
    color: var(--legal-muted);
}

.legal-section li {
    margin-bottom: 0.75rem;
}

.legal-section strong {
    color: var(--legal-text);
}

.legal-contact-box {
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid var(--legal-border);
    background: rgba(255, 215, 0, 0.06);
    color: var(--legal-text);
}

.legal-footer {
    margin-top: clamp(2.5rem, 4vw, 4rem);
    text-align: center;
    color: var(--legal-muted);
    font-size: 0.95rem;
}

.legal-footer a {
    font-weight: 600;
}

@media (max-width: 640px) {
    .legal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-header .back-link {
        width: 100%;
        justify-content: center;
    }

    .legal-card {
        padding: clamp(1.25rem, 5vw, 2rem);
    }

    .legal-section ul,
    .legal-section ol {
        margin-left: 1rem;
    }
}
