/* ================================================
   Legal pages — shared layout and typography
   ================================================ */

:root {
    --firstline-gold: #C0974A;
    --firstline-dark: #0c0900;
}

body.page-legal {
    overflow-x: hidden;
    background-color: #FCF0D6;
}

/*
 * style.css pins the footer with position:fixed !important and z-index:-1 !important
 * to create the reveal-on-scroll effect. Legal pages need a static footer instead.
 */
.page-legal footer.footer_luxury {
    position: relative !important;
    z-index: 1 !important;
    padding-top: 60px !important;
}

/* ---- Hero ---- */

.hero-legal {
    background-color: var(--firstline-dark);
    padding: 160px 0 80px;
    text-align: center;
}

.hero-legal h1 {
    color: var(--firstline-gold);
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: none;
}

.hero-legal p {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 300;
}

/* ---- Sidebar ---- */

.legal-menu {
    position: sticky;
    top: 120px;
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/*
 * .legal-menu .nav-link (0,2,0) beats Bootstrap's .nav-link (0,1,0) — no !important needed.
 * Equal specificity with Bootstrap pills .nav-pills .nav-link.active (0,3,0) resolved by
 * source order: legal.css loads after bootstrap.min.css.
 */
.legal-menu .nav-link {
    font-weight: 500;
    color: #555;
    border-left: 3px solid transparent;
    border-radius: 0;
    padding: 15px 20px;
    text-transform: none;
    font-size: 1rem;
    margin-bottom: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
    text-align: left;
    background: transparent;
}

.legal-menu .nav-link:hover {
    color: var(--firstline-gold);
    background-color: rgba(192, 151, 74, 0.05);
}

.legal-menu .nav-link.active {
    color: var(--firstline-gold);
    background: transparent;
    border-left: 3px solid var(--firstline-gold);
    font-weight: 600;
}

/* ---- Content ---- */

.legal-content {
    background-color: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
    color: #000;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.legal-content h4 {
    color: #000;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.legal-content p,
.legal-content li {
    font-weight: 300;
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

.legal-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.legal-content hr {
    margin: 40px 0;
    border-color: #eee;
}

/* .legal-content a (0,1,1) beats Bootstrap's a (0,0,1) */
.legal-content a {
    color: var(--firstline-gold);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    background-color: transparent;
}

.legal-content a:hover {
    color: #000;
    text-decoration: none;
}

/* ---- Responsive ---- */

@media (max-width: 767px) {
    .legal-content {
        padding: 30px 20px;
    }

    .legal-menu {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
}
