/* =============================================
  GLOBAL STYLES
============================================= */
:root {
    --font-primary: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --color-primary: #f5f4f1;
    --color-footer: #1e293b;
    --color-accent: #0a66c2;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--color-primary);
    background-image: url('/assets/images/background.webp');
    font-family: var(--font-primary);
    color: #111827;
}

/* =============================================
  LEGAL PAGES STYLES
============================================= */
.legal-container {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: auto;
}

.legal-container h1 {
    font-size: 2rem;
    color: #111827;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.legal-container h2 {
    font-size: 1.3rem;
    color: #111827;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.legal-container p,
.legal-container ul {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #374151;
}

.legal-container ul {
    padding-left: 1.5rem;
    margin-left: 1rem;
}

.legal-container li {
    margin-bottom: 0.5rem;
}

.legal-container a {
    color: var(--color-accent);
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

.legal-update {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
}

/* =============================================
  HOMEPAGE STYLES
============================================= */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5em 0;
    color: #111827;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 1em 0;
    color: #374151;
    max-width: 600px;
}

dotlottie-wc {
    width: 400px;
    height: 400px;
    margin: 1.5rem auto;
    display: block;
}

/* =============================================
  FOOTER STYLES
============================================= */
footer {
    flex-shrink: 0;
    background-color: var(--color-footer);
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright,
.footer-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
    font-family: var(--font-primary);
    line-height: 1.4;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: white;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-social a:hover span {
    color: white;
}

.footer-social i {
    color: var(--color-accent);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* =============================================
  RESPONSIVE STYLES
============================================= */

@media (max-width: 1512px) {

    h1 {
        padding-top: 3rem;
    }
    .main-content {
        background-color: rgba(255, 255, 255, 0.85);
        border-radius: 8px;
        margin: 2rem auto;
        max-width: 1000px;
        width: 100%;
        height: auto;
        min-height: 60vh;
    }

    .footer-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
    }

    dotlottie-wc {
        width: 300px;
        height: 300px;
        margin: 1rem auto;
    }

    @supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {
        .safari-only {
            font-size: 1.2rem;
            padding: 0;
        }
        dotlottie-wc {
            width: 300px;
            height: 300px;
            margin: 1rem auto;
        }
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1.125rem;
        padding: 1rem;
    }

    html, body {
        overflow: auto;
    }

    body {
        background-attachment: scroll;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        justify-content: space-between;
    }

    html {
        height: auto;
    }

    .main-content {
        margin: 0;
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 0;
    }

    footer {
        padding: 0.5rem 0;
        width: 100%;
        margin-top: auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    dotlottie-wc {
        width: 200px;
        height: 200px;
        margin: 1rem auto;
    }

    .legal-container {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 0;
    }
}
