/**
 * AirPilot Theme - Scoped Terms & Conditions Page Design System
 * 
 * Prevents global theme CSS from breaking layout, grids, spacing, and typography.
 * Follows BEM nomenclature and incorporates professional layout spacing.
 * 
 * @package AirPilot
 */

/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS (Scoped)
   ========================================================================== */
.terms-conditions-page {
    --terms-primary: #2563eb;
    --terms-primary-hover: #1d4ed8;
    --terms-secondary: #002147;
    --terms-slate: #64748b;
    --terms-bg-light: #f8fafc;
    --terms-border: rgba(226, 232, 240, 0.8);
    --terms-white: #ffffff;
    --terms-gold: #ffd700;
    
    --terms-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --terms-font-headings: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --terms-transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    font-family: var(--terms-font-sans);
    color: var(--terms-secondary);
    background-color: var(--terms-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================================================
   2. GLOBAL RESET & UTILITIES (Scoped)
   ========================================================================== */
.terms-conditions-page *,
.terms-conditions-page *::before,
.terms-conditions-page *::after {
    box-sizing: border-box;
}

.terms-conditions-page .terms-container {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.terms-policy-section {
    position: relative;
    padding: 40px 0;
    background-color: var(--terms-white);
}

@media (min-width: 768px) {
    .terms-policy-section {
        padding: 50px 0;
    }
}

.terms-policy-section:first-of-type {
    padding-top: 60px;
}

.terms-policy-section:last-of-type {
    padding-bottom: 80px;
}

/* Scoped Typography Overrides */
.terms-conditions-page h1,
.terms-conditions-page h2,
.terms-conditions-page h3,
.terms-conditions-page h4 {
    font-family: var(--terms-font-headings);
    font-weight: 800;
    margin-top: 0;
    color: var(--terms-secondary);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.terms-conditions-page p {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--terms-slate);
}

.terms-conditions-page p:last-child {
    margin-bottom: 0;
}

.terms-conditions-page a {
    color: var(--terms-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--terms-transition-smooth);
}

.terms-conditions-page a:hover {
    color: var(--terms-primary-hover);
    text-decoration: underline;
}

/* ==========================================================================
   3. SECTION SPECIFIC CLASSES
   ========================================================================== */
.terms-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--terms-secondary);
    margin-bottom: 18px;
    border-bottom: 2px solid var(--terms-bg-light);
    padding-bottom: 10px;
}

@media (min-width: 768px) {
    .terms-section-title {
        font-size: 24px;
    }
}

.terms-intro-content {
    font-size: 15px;
    line-height: 1.7;
}

/* List Items */
.terms-conditions-page ul,
.terms-conditions-page ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.terms-conditions-page li {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--terms-slate);
    margin-bottom: 10px;
}

/* ==========================================================================
   4. HERO / HEADER INTEGRATION
   ========================================================================== */
.terms-conditions-page .page-hero {
    margin-bottom: 0;
}

.terms-conditions-page .site-main {
    background-color: var(--terms-white);
}
