/* ============================================================
   SHARED LEGAL PAGE STYLES
   patelairportshuttle.com — terms / privacy / faq / cancellation
   ============================================================ */

/* Hero banner */
.legal-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0d2d54 100%);
    color: white;
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,144,255,.18) 0%, transparent 70%);
}

.legal-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legal-breadcrumb {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.legal-breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
}

.legal-breadcrumb a:hover { opacity: 1; }

.legal-hero h1 {
    font-size: 2.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.legal-hero p {
    font-size: 1rem;
    opacity: 0.75;
}

/* Main layout */
.legal-page {
    background: var(--bg-white);
    min-height: 100vh;
}

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar */
.legal-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border-top: 4px solid var(--sky-blue);
}

.legal-sidebar h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 1rem;
}

.legal-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.legal-sidebar ul a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    display: block;
    transition: all 0.2s;
}

.legal-sidebar ul a:hover {
    background: #f0f6ff;
    color: var(--sky-blue);
}

.sidebar-cta-box {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.sidebar-cta-box p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

/* Content area */
.legal-content {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.legal-content section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #f0f2f5;
}

.legal-content section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #eef0f4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-content p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.legal-content ul {
    color: #444;
    line-height: 1.8;
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
}

.legal-content ul li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.legal-content a {
    color: var(--sky-blue);
    font-weight: 600;
    text-decoration: none;
}

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

/* Note / highlight box */
.legal-note {
    background: #f0f6ff;
    border-left: 4px solid var(--sky-blue);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.7;
}

/* Contact box */
.legal-contact-box {
    background: linear-gradient(135deg, #f7f9fc, #f0f6ff);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.legal-contact-box div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.legal-contact-box span {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ── FAQ specific ── */
.faq-item {
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f7f9fc;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
    transition: background 0.2s;
    gap: 1rem;
    user-select: none;
}

.faq-q:hover { background: #eef2ff; }

.faq-q.open {
    background: var(--navy);
    color: white;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.3s;
    line-height: 1;
}

.faq-q.open .faq-icon { transform: rotate(45deg); }

.faq-a {
    display: none;
    padding: 1rem 1.25rem;
    background: white;
    border-top: 1px solid #e8ecf0;
    animation: faqIn 0.25s ease-out;
}

.faq-a.open { display: block; }

@keyframes faqIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.faq-still-questions {
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--navy), #0d2d54);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.faq-still-questions h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: white;
}

.faq-still-questions p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.25rem;
}

.faq-contact-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Cancellation table ── */
.cancel-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e5eb;
    margin: 1.25rem 0;
}

.cancel-row {
    display: grid;
    grid-template-columns: 1fr 180px 120px;
    gap: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.9rem;
}

.cancel-row:last-child { border-bottom: none; }

.cancel-row > div {
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cancel-row > div:not(:last-child) {
    border-right: 1px solid rgba(0,0,0,0.06);
}

.cancel-head {
    background: var(--navy);
    color: white;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cancel-green  { background: #f0fff4; color: #155724; }
.cancel-yellow { background: #fffbea; color: #856404; }
.cancel-orange { background: #fff3e0; color: #7c4a00; }
.cancel-red    { background: #fff5f5; color: #721c24; }
.cancel-icon   { font-size: 1rem; flex-shrink: 0; }

/* Footer on legal pages */
.legal-footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-footer-bottom a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    margin: 0 4px;
}

.legal-footer-bottom a:hover { color: var(--sky-blue); }

/* Responsive */
@media (max-width: 900px) {
    .legal-container {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
    }

    .legal-sidebar {
        position: static;
    }

    .cancel-row {
        grid-template-columns: 1fr;
    }

    .cancel-row > div {
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        padding: 0.6rem 1rem;
    }

    .cancel-head { display: none; }
}

@media (max-width: 600px) {
    .legal-hero h1 { font-size: 2rem; }
    .legal-content { padding: 1.5rem; }
    .faq-contact-row { flex-direction: column; align-items: center; }
}
