/**
 * ==============================================================================
 * FilterFlights - Static Policy & Legal Pages Stylesheet
 * File: public/assets/css/policy.css
 * ==============================================================================
 */

/* ------------------------------------------------------------------------------
   1. HERO BANNER
   ------------------------------------------------------------------------------ */
.ff-policy-hero {
    background: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.15) 0%, transparent 45%),
                linear-gradient(135deg, #091322 0%, #0d213a 65%, #0a192f 100%);
    padding: 3.25rem 0 3.75rem;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ff-policy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.6;
    pointer-events: none;
}

.ff-policy-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    background: rgba(2, 132, 199, 0.18);
    border: 1px solid rgba(2, 132, 199, 0.4);
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.ff-policy-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 1rem;
}

.ff-policy-highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ff-policy-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #cbd5e1;
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.ff-policy-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.ff-policy-meta-pill i {
    color: #38bdf8;
}

/* ------------------------------------------------------------------------------
   2. MAIN POLICY LAYOUT (SIDEBAR + DOCUMENT)
   ------------------------------------------------------------------------------ */
.ff-policy-main-section {
    padding: 3.5rem 0 5.5rem;
    background-color: var(--color-bg-alt, #f8fafc);
}

.ff-policy-layout-grid {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar Navigation */
.ff-policy-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.ff-policy-nav-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.ff-policy-nav-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.ff-policy-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ff-policy-nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ff-policy-nav-btn:hover {
    background: #f1f5f9;
    color: #0284c7;
}

.ff-policy-nav-btn.is-active {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    border-left: 3px solid #0284c7;
}

.ff-policy-help-box {
    background: linear-gradient(135deg, #091322 0%, #0d213a 100%);
    border-radius: 16px;
    padding: 1.75rem;
    color: #ffffff;
    text-align: center;
}

.ff-policy-help-box i {
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 0.75rem;
}

.ff-policy-help-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.ff-policy-help-text {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* ------------------------------------------------------------------------------
   3. POLICY DOCUMENT CARD & LEGAL TYPOGRAPHY
   ------------------------------------------------------------------------------ */
.ff-policy-doc-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.ff-doc-header-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.ff-doc-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
}

.ff-btn-print {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ff-btn-print:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Typography */
.ff-policy-content {
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.8;
}

.ff-policy-content h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 2.25rem 0 1rem;
    padding-left: 0.85rem;
    border-left: 4px solid #0284c7;
}

.ff-policy-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.75rem 0 0.75rem;
}

.ff-policy-content p {
    margin-bottom: 1.25rem;
}

.ff-policy-content ul,
.ff-policy-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.ff-policy-content li {
    margin-bottom: 0.6rem;
}

/* Notice & Callout Cards */
.ff-policy-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 4px solid #0284c7;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    font-size: 0.95rem;
    color: #0369a1;
    line-height: 1.6;
}

.ff-policy-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    font-size: 0.95rem;
    color: #92400e;
    line-height: 1.6;
}

/* Tables */
.ff-policy-table-wrapper {
    overflow-x: auto;
    margin: 1.75rem 0 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.ff-policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.ff-policy-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    padding: 0.85rem 1.15rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.ff-policy-table td {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.ff-policy-table tr:hover td {
    background-color: #f8fafc;
}

/* ------------------------------------------------------------------------------
   4. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .ff-policy-layout-grid {
        grid-template-columns: 1fr;
    }

    .ff-policy-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .ff-policy-hero {
        padding: 2.5rem 0;
    }

    .ff-policy-hero-title {
        font-size: 1.85rem;
    }

    .ff-policy-doc-card {
        padding: 1.5rem;
    }
}
