/* ===========================================
   DELCA CEYLON TOURS - LEGAL PAGES STYLES
   =========================================== */

:root {
    --legal-primary: #0d9488;       /* Primary Teal */
    --legal-primary-dark: #0f766e;  /* Dark Teal */
    --legal-secondary: #f97316;     /* Accent Orange */
    --legal-bg: #f8fafc;            /* Clean light grey background */
    --legal-card-bg: #ffffff;
    --text-heading: #0f172a;        /* Slate dark */
    --text-body: #334155;           /* Slate body */
    --text-muted: #64748b;          /* Muted text */
    --border-color: #e2e8f0;
    --accent-light: #f0fdfa;        /* Soft teal tint */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    --radius-lg: 16px;
    --radius-md: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--legal-bg);
}

/* -------------------------------------------
   HERO BANNER
   ------------------------------------------- */
.legal-hero {
    position: relative;
    height: 40vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--text-heading);
    overflow: hidden;
}

.legal-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.7);
}

.legal-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(13, 148, 136, 0.75) 100%);
    z-index: 2;
}

.legal-hero .hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
}

.legal-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.legal-hero h1 .highlight {
    color: #38bdf8;
    background: linear-gradient(135deg, #38bdf8 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.legal-breadcrumb {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.legal-breadcrumb a {
    color: #ffffff;
    font-weight: 500;
}

.legal-breadcrumb a:hover {
    color: var(--legal-secondary);
}

/* -------------------------------------------
   MAIN LAYOUT & GRID
   ------------------------------------------- */
.legal-section {
    padding: 50px 0 80px 0;
}

.legal-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 35px;
    align-items: start;
}

/* -------------------------------------------
   SIDEBAR NAVIGATION
   ------------------------------------------- */
.legal-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--legal-card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: var(--legal-primary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.sidebar-nav-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.sidebar-nav-item:hover {
    background-color: var(--accent-light);
    color: var(--legal-primary-dark);
    transform: translateX(4px);
}

.sidebar-nav-item.active {
    background: linear-gradient(135deg, var(--legal-primary) 0%, var(--legal-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.sidebar-nav-item.active i {
    color: #ffffff;
}

/* Sidebar Help Box */
.sidebar-help {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.sidebar-help i {
    font-size: 2.2rem;
    color: var(--legal-secondary);
    margin-bottom: 12px;
}

.sidebar-help h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.sidebar-help p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 18px;
    line-height: 1.5;
}

.btn-sidebar-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background-color: var(--legal-secondary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-sidebar-contact:hover {
    background-color: #ea580c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* -------------------------------------------
   MAIN CONTENT CARD
   ------------------------------------------- */
.legal-content-card {
    background: var(--legal-card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.legal-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 24px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.legal-header-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
    line-height: 1.3;
}

.legal-header-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.btn-print {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f5f9;
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-print:hover {
    background-color: var(--text-heading);
    color: #ffffff;
}

/* Preamble Box */
.legal-preamble {
    background-color: var(--accent-light);
    border-left: 4px solid var(--legal-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin-bottom: 35px;
}

.legal-preamble p {
    font-size: 1.05rem;
    color: #0f766e;
    line-height: 1.7;
    font-weight: 500;
    margin: 0;
}

/* Content Typography */
.legal-body-section {
    margin-bottom: 35px;
}

.legal-body-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-body-section h2 .sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--accent-light);
    color: var(--legal-primary);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.legal-body-section p {
    font-size: 0.98rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 14px;
}

/* Styled Lists */
.legal-list {
    margin: 14px 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-list li {
    position: relative;
    padding-left: 28px;
    font-size: 0.98rem;
    color: var(--text-body);
    line-height: 1.6;
}

.legal-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--legal-primary);
    font-size: 1rem;
}

/* Specific Highlight Boxes inside content */
.highlight-box {
    background-color: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.highlight-box i {
    font-size: 1.5rem;
    color: var(--legal-secondary);
    margin-top: 2px;
    flex-shrink: 0;
}

.highlight-box div h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #9a3412;
    margin-bottom: 4px;
}

.highlight-box div p {
    font-size: 0.92rem;
    color: #c2410c;
    margin: 0;
    line-height: 1.5;
}

/* Contact Footer Box inside document */
.legal-contact-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-top: 40px;
}

.legal-contact-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.contact-detail-item i {
    font-size: 1.2rem;
    color: var(--legal-primary);
    flex-shrink: 0;
}

.contact-detail-item > div {
    min-width: 0;
    flex: 1;
}

.contact-detail-item div .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-detail-item div .val {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contact-detail-item a.val:hover {
    color: var(--legal-secondary);
}

/* -------------------------------------------
   RESPONSIVE DESIGN
   ------------------------------------------- */
@media (max-width: 992px) {
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-nav-item {
        flex: 1;
        min-width: 180px;
        justify-content: center;
    }

    .sidebar-help {
        display: none;
    }

    .legal-content-card {
        padding: 30px 24px;
    }

    .legal-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .legal-hero {
        height: 35vh;
        min-height: 260px;
    }

    .legal-hero h1 {
        font-size: 1.8rem;
    }

    .legal-content-card {
        padding: 20px 16px;
    }

    .legal-header-text h1 {
        font-size: 1.6rem;
    }

    .sidebar-nav-item {
        min-width: 100%;
    }

    .contact-detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
