/* ============ PAGE HERO (SUBPAGE) ============ */
.page-hero {
    padding: 10rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.page-hero-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.page-hero-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.15;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.35s;
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ PAGE-SPECIFIC HEADER VISIBLE ============ */
.header.page-header {
    opacity: 1;
    transform: translateY(0);
}

/* ============ TERMS SECTION ============ */
.terms-section {
    padding: 5rem 2rem 6rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%)
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ============ TERMS META ============ */
.terms-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1.5rem 2rem;
    background: var(--cream-dark);
    border-radius: 16px;
}

@media (max-width: 600px) {
    .terms-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.terms-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.terms-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--warm-gray);
}

.terms-meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============ TERMS CONTENT ============ */
.terms-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--cream-dark);
    border-radius: 16px;
    border-left: 4px solid var(--orange);
}

.terms-intro p {
    margin: 0;
}

/* Terms Section Blocks */
.terms-section-block {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(61, 52, 40, 0.1);
}

.terms-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-heading {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.terms-section-block > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.terms-section-block > p:last-child {
    margin-bottom: 0;
}

/* Terms Lists */
.terms-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.terms-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.terms-list li:last-child {
    margin-bottom: 0;
}

.terms-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
}

.terms-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Links in Terms */
.terms-content a {
    color: var(--orange-dark);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.terms-content a:hover {
    color: var(--orange);
    text-decoration: underline;
}

/* ============ TERMS FOOTER ============ */
.terms-footer {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border-radius: 20px;
}

.terms-footer-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .terms-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

.terms-footer-icon {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(61, 52, 40, 0.1);
}

.terms-footer-icon svg {
    width: 32px;
    height: 32px;
    color: var(--orange);
}

.terms-footer-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.terms-footer-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.terms-footer-content a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.terms-footer-content a:hover {
    color: var(--white);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .page-hero {
        padding: 8rem 1.5rem 3rem;
    }

    .terms-section {
        padding: 3rem 1.5rem 4rem;
    }

    .terms-meta {
        padding: 1.25rem 1.5rem;
    }

    .terms-intro {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .terms-heading {
        font-size: 1.35rem;
    }

    .terms-section-block {
        margin-bottom: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .terms-footer {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .terms-list li {
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }

    .terms-section-block > p {
        font-size: 0.95rem;
    }
}

/* ============ PRINT STYLES ============ */
@media print {
    .header,
    .footer,
    .page-hero,
    .terms-footer {
        display: none;
    }

    .terms-section {
        padding: 0;
    }

    .terms-content {
        max-width: 100%;
    }

    .terms-heading {
        page-break-after: avoid;
    }

    .terms-section-block {
        page-break-inside: avoid;
    }

    .terms-list li {
        page-break-inside: avoid;
    }
}