/* ==========================================================================
   Ghatte Lawyer - Official Legal & Content Pages Stylesheet (legal.css)
   Pure Vanilla CSS • Strict AGENTS.md Compliance • Quiet Luxury Aesthetic
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Base Page & Layout
   ------------------------------------------------------------------------- */
.legal-page-main {
    background-color: #faf9f8;
    color: #383639;
    min-height: 80vh;
}

/* -------------------------------------------------------------------------
   2. Editorial Hero Header
   ------------------------------------------------------------------------- */
.legal-hero {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #faf9f8 55%, #f5f4f0 100%);
    border-bottom: 1px solid #e7e5e4;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .legal-hero {
        padding-top: 4rem;
        padding-bottom: 4.5rem;
    }
}

.legal-hero-ambient {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 350px;
    background: radial-gradient(ellipse at center, rgba(151, 121, 46, 0.12) 0%, rgba(245, 244, 240, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.legal-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #78716c;
    margin-bottom: 1.25rem;
}

.legal-breadcrumbs a {
    color: #78716c;
    transition: color 0.15s ease;
    cursor: pointer;
}

.legal-breadcrumbs a:hover {
    color: #97792e;
    text-decoration: underline;
}

.legal-breadcrumbs-current {
    color: #97792e;
    font-weight: 600;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #97792e;
    margin-bottom: 0.75rem;
}

.legal-kicker-bar {
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, #97792e, #c4a148);
    border-radius: 1px;
}

.legal-hero-title {
    font-family: var(--font-legal, 'Cinzel', serif);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1c1a1d;
    letter-spacing: -0.01em;
    margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
    .legal-hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .legal-hero-title {
        font-size: 2.85rem;
    }
}

.legal-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    gap-sm: gap-1.5rem;
    font-size: 0.8125rem;
    color: #78716c;
}

.legal-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    background: #fbf5e6;
    border: 1px solid #e6ca85;
    border-radius: 9999px;
    color: #856117;
    font-weight: 600;
    font-size: 0.75rem;
}

/* -------------------------------------------------------------------------
   3. Content Section & Grid
   ------------------------------------------------------------------------- */
.legal-content-section {
    padding-top: 2.5rem;
    padding-bottom: 4.5rem;
}

@media (min-width: 1024px) {
    .legal-content-section {
        padding-top: 3.5rem;
        padding-bottom: 6rem;
    }
}

/* -------------------------------------------------------------------------
   4. Sticky Legal Sidebar Navigation
   ------------------------------------------------------------------------- */
.legal-sidebar-sticky {
    position: sticky;
    top: 6.5rem;
    z-index: 10;
}

.legal-nav-card {
    background: #ffffff;
    border: 1px solid #e7e4dc;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px -2px rgba(28, 25, 23, 0.03);
}

.legal-nav-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #97792e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.legal-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #44403c;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}

.legal-nav-item:hover {
    background: #fbf8f0;
    color: #97792e;
    border-color: #f0e6cb;
}

.legal-nav-item.active {
    background: #fbf5e6;
    color: #856117;
    border-color: #b89139;
    font-weight: 700;
}

.legal-nav-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 0.35rem;
    background: #ffffff;
    border: 1px solid #e7e4dc;
    color: #78716c;
}

.legal-nav-item.active .legal-nav-badge {
    background: #856117;
    color: #ffffff;
    border-color: #856117;
}

/* Chamber Contact Aside Card */
.legal-chamber-aside {
    background: #ffffff;
    border: 1px solid #e7e4dc;
    border-radius: 1.25rem;
    padding: 1.35rem;
    margin-top: 1.25rem;
    box-shadow: 0 4px 20px -2px rgba(28, 25, 23, 0.03);
}

.legal-chamber-aside h4 {
    font-family: var(--font-legal, 'Cinzel', serif);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1c1a1d;
    margin-bottom: 0.35rem;
}

.legal-chamber-aside p {
    font-size: 0.75rem;
    color: #78716c;
    line-height: 1.6;
}

.legal-chamber-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.65rem 1rem;
    background: #97792e;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 0.625rem;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}

.legal-chamber-action-btn:hover {
    background: #785f24;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(151, 121, 46, 0.25);
}

/* -------------------------------------------------------------------------
   5. Legal Content Articles & Document Styling
   ------------------------------------------------------------------------- */
.legal-content-card {
    background: #ffffff;
    border: 1px solid #e7e4dc;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 25px -4px rgba(28, 25, 23, 0.04);
}

@media (min-width: 640px) {
    .legal-content-card {
        padding: 2.5rem 2.25rem;
    }
}

@media (min-width: 1024px) {
    .legal-content-card {
        padding: 3rem 2.75rem;
    }
}

.legal-lead-paragraph {
    font-size: 1rem;
    line-height: 1.8;
    color: #44403c;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0ede6;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .legal-lead-paragraph {
        font-size: 1.0625rem;
    }
}

.legal-lead-paragraph a {
    color: #97792e;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.legal-lead-paragraph a:hover {
    color: #785f24;
}

/* Individual Policy Section Blocks */
.legal-article-section {
    margin-bottom: 2.5rem;
}

.legal-article-section:last-child {
    margin-bottom: 0;
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.legal-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: #fbf5e6;
    border: 1px solid #e6ca85;
    color: #856117;
    font-size: 0.8125rem;
    font-weight: 800;
    font-family: var(--font-legal, 'Cinzel', serif);
    shrink: 0;
}

.legal-section-title {
    font-family: var(--font-legal, 'Cinzel', serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #1c1a1d;
    margin: 0;
}

@media (min-width: 768px) {
    .legal-section-title {
        font-size: 1.35rem;
    }
}

.legal-paragraph {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #57534e;
    margin-bottom: 1rem;
}

.legal-paragraph:last-child {
    margin-bottom: 0;
}

.legal-paragraph strong {
    color: #1c1917;
}

/* Bulleted Lists */
.legal-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.legal-bullet-item {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #57534e;
}

.legal-bullet-icon {
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background: #fbf5e6;
    border: 1px solid #b89139;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-bullet-icon::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background: #97792e;
}

/* Highlight Box / Callout Box */
.legal-callout-box {
    background: #fdfaf3;
    border: 1px solid #e9dcb9;
    border-left: 4px solid #97792e;
    border-radius: 0.85rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.legal-callout-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #856117;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-callout-text {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #57534e;
    margin: 0;
}

/* Official Footer Compliance Banner in Article */
.legal-compliance-banner {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #f0ede6;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #78716c;
}

@media (min-width: 640px) {
    .legal-compliance-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 639px) {
    .legal-hero {
        padding-top: 2.25rem;
        padding-bottom: 2.75rem;
    }

    .legal-hero-title {
        font-size: 1.65rem;
    }

    .legal-content-card {
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }

    .legal-nav-card {
        padding: 1.15rem 1rem;
    }

    .legal-lead-paragraph {
        font-size: 0.9375rem;
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .legal-callout-box {
        padding: 1rem 0.85rem;
    }
}

@media (max-width: 480px) {
    .legal-hero-title {
        font-size: 1.45rem;
    }

    .legal-content-card {
        padding: 1.25rem 0.75rem;
    }

    .legal-section-title {
        font-size: 1.15rem;
    }

    .legal-bullet-item {
        font-size: 0.875rem;
    }
}