/* =====================================================
   LEGAL PAGES — Shared styles for Terms & Privacy Policy
===================================================== */

.terms-page-body {
    background-color: var(--red);
    background-image: url('./IMG/BG-PATTERN.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--yellow);
    font-family: var(--font-heading), sans-serif;
    min-height: 100vh;
    padding: 40px 20px 80px;
}

.terms-card-wrapper {
    max-width: 1200px;
    width: min(92%, 1200px);
    margin: 0 auto;
    background-color: var(--green);
    background-image: url('./IMG/BG-PATTERN.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 3px solid var(--cream);
}

.terms-card-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 30px;
    background-color: var(--green);
    background-image: url('./IMG/BG-PATTERN.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 3px solid var(--cream);
}

.terms-card-title {
    font-family: var(--font-heading), sans-serif;
    font-size: 2.2rem;
    color: var(--red);
    text-align: center;
    margin: 0;
    letter-spacing: var(--heading-spacing);
    text-transform: uppercase;
}

.terms-card-close-btn {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-heading), sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 22px;
    corner-shape: squircle;
    transition: color 0.2s ease, transform 0.2s ease;
}

.terms-card-close-btn:hover {
    color: var(--red);
    transform: translateY(-50%) scale(1.2);
}

.terms-card-body {
    padding: 40px 60px;
    font-family: var(--font-heading), sans-serif;
    color: var(--yellow);
    line-height: 1.25;
}

.terms-updated-date {
    font-size: 1rem;
    color: var(--yellow);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.terms-intro p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--yellow);
    line-height: 1.25;
    text-align: justify;
    text-justify: inter-word;
}

.terms-section-block {
    margin-bottom: 32px;
}

.terms-section-title {
    font-family: var(--font-heading), sans-serif;
    font-size: 1.4rem;
    color: var(--red);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: var(--heading-spacing);
    border-bottom: 2px solid var(--cream);
    padding-bottom: 4px;
}

.terms-section-content p {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--yellow);
    line-height: 1.25;
    text-align: justify;
    text-justify: inter-word;
}

@media (max-width: 640px) {
    .terms-page-body {
        padding: 16px 10px 40px;
    }

    .terms-card-header {
        padding: 16px 20px;
    }

    .terms-card-title {
        font-size: 1.1rem;
    }

    .terms-card-close-btn {
        right: 14px;
        font-size: 1.5rem;
        border-radius: 18px;
        corner-shape: squircle;
    }

    .terms-card-body {
        padding: 20px 14px;
        line-height: 1.2;
    }

    .terms-section-title {
        font-size: 1rem;
    }

    .terms-intro p,
    .terms-section-content p {
        font-size: 0.62rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }
}
