/* ===================================
   LEGAL SECTION - PREMIUM STYLES
   Modern, Fancy, Mobile-Responsive
   FIXED: No hamburger, stacked mobile nav
   =================================== */

:root {
    --primary-gold: #afa939;
    --primary-gold-dark: #8B6914;
    --primary-gold-light: #D4AF37;
    --secondary-dark: #1C1C1C;
    --background-dark: #2C2C2C;
    --background-darker: #0A0A0A;
    --text-light: #fff8f8;
    --text-dark: #0A0A0A;
    --gradient-primary: linear-gradient(135deg, #afa939 0%, #D4AF37 100%);
    --gradient-dark: linear-gradient(135deg, #1C1C1C 0%, #0A0A0A 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(175, 169, 57, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 20px rgba(175, 169, 57, 0.3);
    --border-radius: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===================================
   GLOBAL RESETS & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.legal-page {
    font-family: 'Poppins', sans-serif;
    background: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   NAVBAR - DESKTOP STYLES
   =================================== */

body.legal-page .ftco-navbar-light {
    background: var(--secondary-dark) !important;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

body.legal-page .ftco-navbar-light .navbar-brand {
    color: var(--primary-gold) !important;
    display: flex;
    align-items: center;
    gap: 0px;
    /* Reduced gap as requested */
}

body.legal-page .ftco-navbar-light .navbar-nav>.nav-item>.nav-link {
    color: var(--text-light) !important;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

body.legal-page .ftco-navbar-light .navbar-nav>.nav-item>.nav-link:hover {
    color: var(--primary-gold) !important;
}

body.legal-page .ftco-navbar-light .navbar-nav>.nav-item.active>.nav-link {
    color: var(--primary-gold) !important;
}

body.legal-page .navbar-logo {
    height: 120px !important;
    width: auto;
    margin-right: 5px;
    /* Small margin if gap isn't supported in older browsers */
}

/* Hide hamburger on all screens for legal pages */
body.legal-page .navbar-toggler {
    display: none !important;
}

/* ===================================
   MOBILE NAVIGATION - STACKED LAYOUT
   =================================== */

@media (max-width: 991px) {
    body.legal-page .ftco-navbar-light {
        padding: 10px 0;
    }

    body.legal-page .ftco-navbar-light .container {
        flex-direction: column;
        align-items: center;
    }

    /* Row 1: Logo centered */
    body.legal-page .navbar-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 10px;
    }

    body.legal-page .navbar-logo {
        height: 100px !important;
        margin-bottom: 5px;
        margin-right: 0;
        /* Reset desktop margin for centered alignment */
    }

    body.legal-page .brand-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body.legal-page .brand-name {
        font-size: 0.9rem !important;
    }

    body.legal-page .brand-sub {
        font-size: 0.7rem !important;
    }

    /* Force collapse to always show */
    body.legal-page .navbar-collapse {
        display: flex !important;
        flex-basis: 100%;
        flex-direction: column;
        align-items: center;
    }

    /* Row 2: Menu items in a row */
    body.legal-page .navbar-nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 10px 0;
        border-top: 1px solid rgba(175, 169, 57, 0.2);
        border-bottom: 1px solid rgba(175, 169, 57, 0.2);
    }

    body.legal-page .navbar-nav>.nav-item {
        margin: 2px 4px;
    }

    body.legal-page .navbar-nav>.nav-item>.nav-link {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
        white-space: nowrap;
    }

    /* Row 3: Humanitarian button centered */
    body.legal-page .navbar-nav>.nav-item.cta {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
        border-top: none;
        padding-top: 5px;
    }

    body.legal-page .navbar-nav>.nav-item.cta .nav-link {
        background: var(--gradient-primary);
        color: var(--text-dark) !important;
        border-radius: 25px;
        padding: 0.5rem 1.5rem !important;
        font-weight: 600;
    }
}

@media (max-width: 576px) {
    body.legal-page .navbar-nav>.nav-item>.nav-link {
        font-size: 0.65rem !important;
        padding: 0.35rem 0.4rem !important;
    }

    body.legal-page .navbar-logo {
        height: 100px !important;
    }

    body.legal-page .brand-name {
        font-size: 0.8rem !important;
    }
}

/* ===================================
   PAGE WRAPPER
   =================================== */

.legal-page-wrapper {
    position: relative;
    min-height: 100vh;
    background: var(--background-dark);
    padding-top: 0;
}

/* ===================================
   HERO SECTION
   =================================== */

.legal-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1C1C1C 0%, #0A0A0A 100%);
    overflow: hidden;
    padding: 80px 20px 60px;
    margin-top: 0;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(175, 169, 57, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.legal-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
}

.legal-hero h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.legal-hero h2 {
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    color: var(--primary-gold-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.legal-hero p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ===================================
   BREADCRUMB - DARK THEME
   =================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    background: transparent !important;
    border-radius: 0;
}

.breadcrumb a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumb a:hover {
    color: var(--primary-gold-light);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   GLASSMORPHISM CARDS
   =================================== */

.glass-card {
    background: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(175, 169, 57, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(175, 169, 57, 0.4);
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card>* {
    position: relative;
    z-index: 1;
}

/* ===================================
   PREMIUM BUTTONS
   =================================== */

.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: var(--text-dark) !important;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: var(--text-dark) !important;
    text-decoration: none;
}

.btn-premium span {
    position: relative;
    z-index: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold) !important;
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: var(--text-dark) !important;
    border-color: transparent;
}

/* ===================================
   PREMIUM SVG ICONS
   =================================== */

.premium-icon {
    width: 48px;
    height: 48px;
    display: inline-block;
}

.premium-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--text-dark);
}

/* ===================================
   GRID LAYOUTS - RESPONSIVE
   =================================== */

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.legal-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.legal-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.legal-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ===================================
   SECTION HEADERS
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header .subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===================================
   ICON ANIMATIONS
   =================================== */

.icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    position: relative;
    transition: var(--transition-bounce);
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.3;
    transform: scale(1);
    transition: var(--transition-smooth);
}

.glass-card:hover .icon-wrapper {
    transform: rotateY(360deg);
}

.glass-card:hover .icon-wrapper::before {
    transform: scale(1.3);
    opacity: 0;
}

.icon-wrapper i,
.icon-wrapper span {
    font-size: 1.75rem;
    color: var(--text-dark);
    z-index: 1;
}

/* ===================================
   TEAM CARDS - ENHANCED
   =================================== */

.team-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    height: 400px;
}

.team-card .team-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    padding: 2rem;
    transform: translateY(50%);
    transition: var(--transition-smooth);
}

.team-card:hover .team-card-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.team-card:hover .team-card-image {
    transform: scale(1.05);
}

.team-card h3 {
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.team-card .position {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-card .bio {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===================================
   GALLERY - MASONRY STYLE
   =================================== */

.legal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(175, 169, 57, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

/* ===================================
   CLIENT LIST - PREMIUM STYLING
   =================================== */

.client-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.client-item {
    background: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(175, 169, 57, 0.2);
    border-left: 4px solid var(--primary-gold);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.client-item:hover {
    background: rgba(175, 169, 57, 0.15);
    border-left-width: 6px;
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.client-item h3 {
    color: var(--primary-gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* ===================================
   CONTACT FORM - ENHANCED
   =================================== */

.contact-form {
    background: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(175, 169, 57, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.legal-page .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(10, 10, 10, 0.6) !important;
    border: 1px solid rgba(175, 169, 57, 0.3) !important;
    border-radius: 8px;
    color: var(--text-light) !important;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

body.legal-page .form-control:focus {
    outline: none;
    border-color: var(--primary-gold) !important;
    background: rgba(10, 10, 10, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(175, 169, 57, 0.15) !important;
}

body.legal-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

body.legal-page textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   MAP STYLING
   =================================== */

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: var(--border-radius);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: var(--border-radius);
}

/* ===================================
   MOBILE RESPONSIVE - CONTENT
   =================================== */

@media (max-width: 1024px) {
    .legal-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        min-height: 40vh;
        padding: 60px 15px 40px;
    }

    .legal-hero h1 {
        font-size: 1.5rem;
    }

    .legal-hero p {
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 1.25rem;
    }

    .legal-grid,
    .legal-grid-3,
    .legal-grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Larger practice area images on mobile */
    .practice-image {
        height: 200px !important;
    }

    .team-card {
        height: 350px;
    }

    .gallery-item {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .legal-hero-content {
        padding: 20px 10px;
    }

    .btn-premium {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .glass-card {
        padding: 1rem;
    }

    .icon-wrapper {
        width: 55px;
        height: 55px;
    }

    .icon-wrapper i,
    .icon-wrapper span {
        font-size: 1.5rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.container-legal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-legal {
    padding: 4rem 0;
}

/* ===================================
   LOADING ANIMATION
   =================================== */

.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loading.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(175, 169, 57, 0.2);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   FOOTER OVERRIDES
   =================================== */

body.legal-page .ftco-footer {
    background: var(--secondary-dark) !important;
}

body.legal-page .ftco-footer p,
body.legal-page .ftco-footer ul li,
body.legal-page .ftco-footer a {
    color: rgba(255, 255, 255, 0.8);
}

body.legal-page .ftco-footer a:hover {
    color: var(--primary-gold);
}

body.legal-page .ftco-footer .logo a {
    color: var(--primary-gold);
}ndex: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loading.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(175, 169, 57, 0.2);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Gallery - 4 Per Row, Uniform Small Frames */
.gallery-4-col {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
    justify-content: flex-start;
}

.gallery-4-col .gallery-item {
    flex: 0 0 calc(25% - 16px);
    max-width: calc(25% - 16px);
    margin: 8px;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .gallery-4-col .gallery-item {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

@media (max-width: 576px) {
    .gallery-4-col .gallery-item {
        flex: 0 0 calc(100% - 16px);
        max-width: calc(100% - 16px);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    padding: 6px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(22, 100, 113, 0.2);
    border-color: #166471;
}

.gallery-item.landscape {
    aspect-ratio: 16/9;
}

.gallery-item.portrait {
    aspect-ratio: 9/16;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}


/* ===================================
   FOOTER OVERRIDES
   =================================== */

body.legal-page .ftco-footer {
    background: var(--secondary-dark) !important;
}

body.legal-page .ftco-footer p,
body.legal-page .ftco-footer ul li,
body.legal-page .ftco-footer a {
    color: rgba(255, 255, 255, 0.8);
}

body.legal-page .ftco-footer a:hover {
    color: var(--primary-gold);
}

body.legal-page .ftco-footer .logo a {
    color: var(--primary-gold);
}