/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* Header */
.header {
    background-color: #003087;
    color: #FFFFFF;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.header h2 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 400;
    opacity: 0.9;
}

/* Shared Section Styles (Terms and Privacy) */
.terms, .privacy {
    margin: 2rem 0 3rem;
}

.terms h3, .privacy h3 {
    color: #FFFFFF;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.terms .last-updated, .privacy .last-updated {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #FFFFFF;
    margin-bottom: 2rem;
    font-style: italic;
}

.terms article, .privacy article {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms article:hover, .privacy article:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.terms h4, .privacy h4 {
    color: #003087;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.terms p, .privacy p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #333;
}

.terms a, .privacy a {
    color: #003087;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms a:hover, .privacy a:hover {
    color: #0040b3;
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #003087;
    color: #FFFFFF;
    text-align: center;
    padding: 1.5rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer p {
    font-size: clamp(0.8rem, 2vw, 1rem);
    opacity: 0.9;
}

/* Media Queries for Responsiveness */

/* Small screens (e.g., iPhone SE: 320px) */
@media (max-width: 576px) {
    .container {
        padding: 0 4vw;
    }

    .header {
        padding: 1.5rem 0;
    }

    .header h1 {
        font-size: clamp(1.2rem, 4.5vw, 1.8rem);
    }

    .header h2 {
        font-size: clamp(1rem, 3.5vw, 1.4rem);
    }

    .terms, .privacy {
        margin: 1.5rem 0 2rem;
    }

    .terms h3, .privacy h3 {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    }

    .terms .last-updated, .privacy .last-updated {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }

    .terms article, .privacy article {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .terms h4, .privacy h4 {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .terms p, .privacy p {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    }
}

/* Large screens (e.g., 4K: 3840px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .header h1 {
        font-size: clamp(2.5rem, 3vw, 3.2rem);
    }

    .header h2 {
        font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    }

    .terms h3, .privacy h3 {
        font-size: clamp(2rem, 2.5vw, 2.4rem);
    }

    .terms .last-updated, .privacy .last-updated {
        font-size: clamp(1rem, 1.5vw, 1.1rem);
    }

    .terms h4, .privacy h4 {
        font-size: clamp(1.5rem, 2vw, 1.8rem);
    }

    .terms p, .privacy p {
        font-size: clamp(1rem, 1.5vw, 1.1rem);
    }

    .terms article, .privacy article {
        padding: 1.5rem;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Vendor prefixes for cross-browser compatibility */
.terms article, .privacy article {
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms a, .privacy a {
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    transition: color 0.3s ease;
}