/* ============================================================
   BOT4ORGE — LEGAL SERVICE PAGE
   All classes prefixed with .legal- to avoid theme conflicts
   ============================================================ */

:root {
    --legal-navy:         #1A2332;
    --legal-navy-deep:    #0F1621;
    --legal-navy-light:   #2A3444;
    --legal-silver:       #C0C5CE;
    --legal-platinum:     #E8EAED;
    --legal-silver-pale:  #F4F5F7;
    --legal-cream:        #FAFBFC;
    --legal-cream-2:      #F0F2F5;
    --legal-soft-white:   #FCFDFE;
    --legal-text:         #1A2332;
    --legal-text-mid:     #5A6270;
    --legal-text-light:   #8A8F9A;
    --legal-white:        #FFFFFF;
    --legal-accent:       #7890B0;
}

/* ── RESET SCOPE ── */
.legal-hero, .legal-trust-bar, .legal-problem-section, .legal-features-section,
.legal-who-section, .legal-process-section, .legal-testimonial-section, .legal-final-cta {
    font-family: 'DM Sans', sans-serif;
    color: var(--legal-text);
    line-height: 1.6;
    box-sizing: border-box;
}

.legal-hero *, .legal-trust-bar *, .legal-problem-section *, .legal-features-section *,
.legal-who-section *, .legal-process-section *, .legal-testimonial-section *, .legal-final-cta * {
    box-sizing: border-box;
}

/* ── SHARED LAYOUT ── */
.legal-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

.legal-section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.legal-section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--legal-silver);
    display: block;
    flex-shrink: 0;
}
.legal-label-center { justify-content: center; }
.legal-label-center::before { display: none; }

.legal-section-label span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--legal-silver);
}

.legal-section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 3.5vw, 52px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--legal-navy);
}
.legal-section-heading em {
    font-style: italic;
    color: var(--legal-accent);
}
.legal-heading-white { color: var(--legal-white) !important; }
.legal-em-silver { color: var(--legal-silver) !important; font-style: italic; }

.legal-section-body {
    font-size: 17px;
    color: var(--legal-text-mid);
    line-height: 1.75;
    font-weight: 300;
    max-width: 560px;
}

/* ── BUTTONS ── */
.legal-btn-silver {
    background: var(--legal-silver);
    color: var(--legal-navy-deep);
    padding: 16px 36px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}
.legal-btn-silver:hover { background: var(--legal-platinum); transform: translateY(-1px); color: var(--legal-navy-deep); }

.legal-btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.7);
    padding: 16px 36px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.2s;
    display: inline-block;
}
.legal-btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: white; }

/* ── HERO ── */
.legal-hero {
    min-height: 92vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
.legal-hero-left {
    background: var(--legal-navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px 80px 80px;
    position: relative;
    z-index: 1;
}
.legal-hero-left::after {
    content: '';
    position: absolute;
    top: 0; right: -40px; bottom: 0;
    width: 80px;
    background: var(--legal-navy);
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
    z-index: 2;
}
.legal-hero-right {
    position: relative;
    overflow: hidden;
}
.legal-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.7) saturate(0.85);
}
.legal-hero-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--legal-navy) 0%, transparent 30%);
}

.legal-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.legal-eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--legal-silver);
    display: block;
}
.legal-eyebrow-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--legal-silver);
}
.legal-hero-left h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 4.5vw, 68px);
    font-weight: 300;
    line-height: 1.08;
    color: var(--legal-white);
    margin-bottom: 28px;
}
.legal-hero-left h1 em {
    font-style: italic;
    color: var(--legal-platinum);
}
.legal-hero-left > p {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    max-width: 420px;
    margin-bottom: 44px;
    font-weight: 300;
}
.legal-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.legal-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}
.legal-hstat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--legal-platinum);
    line-height: 1;
    display: block;
}
.legal-hstat-lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 6px;
    display: block;
    max-width: 120px;
}

/* ── TRUST BAR ── */
.legal-trust-bar {
    background: var(--legal-cream-2);
    border-bottom: 1px solid #DFE1E5;
    padding: 20px 0;
}
.legal-trust-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.legal-trust-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--legal-text-light);
    white-space: nowrap;
}
.legal-trust-divider {
    width: 1px;
    height: 16px;
    background: #C5C9D0;
    flex-shrink: 0;
}
.legal-trust-items {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.legal-trust-items span {
    font-size: 13px;
    font-weight: 500;
    color: var(--legal-text-mid);
}

/* ── PROBLEM ── */
.legal-problem-section {
    padding: 100px 0;
    background: var(--legal-soft-white);
}
.legal-problem-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.legal-problem-left {
    position: sticky;
    top: 100px;
}
.legal-problem-left .legal-section-heading { margin-bottom: 24px; }
.legal-problem-left .legal-section-body { margin-bottom: 0; }

.legal-loss-card {
    background: var(--legal-navy);
    color: white;
    padding: 32px;
    border-radius: 4px;
    margin-top: 36px;
}
.legal-loss-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    font-weight: 600;
    color: var(--legal-platinum);
    line-height: 1;
    display: block;
}
.legal-loss-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin-top: 12px;
    line-height: 1.65;
}
.legal-problem-img-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 32px;
    height: 280px;
}
.legal-problem-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7);
}
.legal-problem-img-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255,255,255,0.95);
    padding: 20px 24px;
    border-radius: 3px;
    backdrop-filter: blur(8px);
}
.legal-overlay-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--legal-silver);
    line-height: 1;
    display: block;
}
.legal-overlay-text {
    font-size: 12px;
    color: var(--legal-text-mid);
    letter-spacing: 0.05em;
    margin-top: 6px;
    display: block;
    max-width: 200px;
}
.legal-problem-right { display: flex; flex-direction: column; }
.legal-pain-item {
    padding: 28px 0;
    border-bottom: 1px solid #E5E8EC;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 20px;
    align-items: start;
}
.legal-pain-item:first-child { border-top: 1px solid #E5E8EC; }
.legal-pain-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--legal-silver);
    letter-spacing: 0.1em;
    padding-top: 3px;
}
.legal-pain-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--legal-navy);
    margin-bottom: 8px;
}
.legal-pain-item p {
    font-size: 15px;
    color: var(--legal-text-mid);
    line-height: 1.65;
    font-weight: 300;
}

/* ── FEATURES ── */
.legal-features-section {
    padding: 100px 0;
    background: var(--legal-cream);
}
.legal-features-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 60px;
}
.legal-features-head .legal-section-body { margin: 16px 0 0; }
.legal-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: #DFE1E5;
    border: 2px solid #DFE1E5;
    border-radius: 6px;
    overflow: hidden;
}
.legal-feat-card {
    background: var(--legal-soft-white);
    padding: 44px 40px;
    transition: background 0.25s;
}
.legal-feat-card:hover { background: #FCFCFD; }
.legal-feat-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--legal-silver-pale);
    border: 1px solid #DFE1E5;
}
.legal-feat-icon { font-size: 20px; }
.legal-feat-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--legal-navy);
    margin-bottom: 12px;
    line-height: 1.2;
}
.legal-feat-card p {
    font-size: 15px;
    color: var(--legal-text-mid);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 16px;
}
.legal-feat-card ul { list-style: none; padding: 0; }
.legal-feat-card ul li {
    font-size: 14px;
    color: var(--legal-text-mid);
    padding: 5px 0 5px 18px;
    position: relative;
    font-weight: 400;
}
.legal-feat-card ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--legal-silver);
}

/* ── WHO ── */
.legal-who-section {
    padding: 100px 0;
    background: var(--legal-soft-white);
}
.legal-who-head {
    text-align: center;
    margin-bottom: 64px;
}
.legal-who-head .legal-section-heading { margin: 16px auto 0; }
.legal-who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.legal-who-card {
    padding: 48px;
    border-radius: 4px;
}
.legal-who-yes { background: var(--legal-cream); border: 1px solid #DFE1E5; }
.legal-who-no  { background: var(--legal-navy); }
.legal-who-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 2px;
    margin-bottom: 24px;
}
.legal-who-yes .legal-who-tag { background: #E8F5EE; color: #1A6B3C; }
.legal-who-no  .legal-who-tag { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.4); }
.legal-who-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 28px;
}
.legal-who-yes h3 { color: var(--legal-navy); }
.legal-who-no  h3 { color: var(--legal-white); }
.legal-who-list { list-style: none; padding: 0; }
.legal-who-list li {
    font-size: 16px;
    padding: 11px 0 11px 26px;
    position: relative;
    border-bottom: 1px solid transparent;
    font-weight: 300;
}
.legal-who-yes .legal-who-list li { color: var(--legal-text-mid); border-bottom-color: #DFE1E5; }
.legal-who-no  .legal-who-list li { color: rgba(255,255,255,0.5); border-bottom-color: rgba(255,255,255,0.07); }
.legal-who-list li:last-child { border-bottom: none; }
.legal-who-yes .legal-who-list li::before { content: '✓'; position: absolute; left: 0; color: #1A6B3C; font-weight: 600; }
.legal-who-no  .legal-who-list li::before { content: '✕'; position: absolute; left: 0; color: rgba(255,255,255,0.2); }

/* ── PROCESS ── */
.legal-process-section {
    padding: 100px 0;
    background: var(--legal-navy);
    position: relative;
    overflow: hidden;
}
.legal-process-section::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192,197,206,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.legal-process-head { margin-bottom: 72px; }
.legal-process-head .legal-section-heading { margin-top: 20px; }
.legal-process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}
.legal-p-step {
    padding: 44px 32px;
    background: var(--legal-navy);
    transition: background 0.2s;
}
.legal-p-step:hover { background: var(--legal-navy-light); }
.legal-p-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    font-weight: 300;
    color: rgba(192,197,206,0.12);
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}
.legal-p-bar {
    width: 28px;
    height: 2px;
    background: var(--legal-silver);
    margin-bottom: 20px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.legal-p-step:hover .legal-p-bar { transform: scaleX(1); }
.legal-p-step h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--legal-white);
    margin-bottom: 12px;
    line-height: 1.3;
}
.legal-p-step p {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    font-weight: 300;
}

/* ── TESTIMONIAL ── */
.legal-testimonial-section {
    padding: 100px 0;
    background: var(--legal-cream);
    border-top: 1px solid #DFE1E5;
}
.legal-testi-inner {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 60px;
    align-items: center;
}
.legal-testi-img-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 440px;
}
.legal-testi-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.legal-testi-content {
    padding-left: 20px;
}
.legal-testi-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 80px;
    color: #DFE1E5;
    line-height: 0.8;
    margin-bottom: 8px;
    display: block;
}
.legal-testi-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 400;
    font-style: italic;
    color: var(--legal-navy);
    line-height: 1.55;
    margin-bottom: 40px;
}
.legal-testi-line {
    width: 40px;
    height: 1px;
    background: var(--legal-silver);
    margin-bottom: 24px;
}
.legal-testi-author {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--legal-navy);
}
.legal-testi-role {
    font-size: 13px;
    color: var(--legal-text-light);
    margin-top: 5px;
}
.legal-testi-stars {
    color: var(--legal-silver);
    font-size: 16px;
    letter-spacing: 3px;
    margin-top: 20px;
}

/* ── FINAL CTA ── */
.legal-final-cta {
    padding: 100px 0;
    background: var(--legal-soft-white);
}
.legal-cta-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.legal-cta-text .legal-section-heading { margin: 20px 0 20px; }
.legal-cta-text .legal-section-body    { margin-bottom: 40px; }
.legal-cta-fine {
    font-size: 12px;
    color: var(--legal-text-light);
    margin-top: 16px;
}
.legal-cta-img-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.legal-cta-img-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}
.legal-cta-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,35,50,0.25) 0%, transparent 50%);
}

/* ── REVEAL ANIMATION ── */
.legal-rv {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.legal-rv.legal-in { opacity: 1; transform: translateY(0); }
.legal-d1 { transition-delay: 0.1s; }
.legal-d2 { transition-delay: 0.2s; }
.legal-d3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .legal-hero { grid-template-columns: 1fr; min-height: auto; }
    .legal-hero-left { padding: 80px 40px; }
    .legal-hero-left::after { display: none; }
    .legal-hero-right { height: 400px; }
    .legal-problem-layout { grid-template-columns: 1fr; gap: 48px; }
    .legal-problem-left { position: static; }
    .legal-features-head { grid-template-columns: 1fr; gap: 16px; }
    .legal-testi-inner { grid-template-columns: 1fr; gap: 48px; }
    .legal-testi-img-wrap { height: 320px; }
    .legal-cta-layout { grid-template-columns: 1fr; gap: 48px; }
    .legal-cta-img-wrap img { height: 320px; }
}

@media (max-width: 768px) {
    .legal-wrap { padding: 0 20px; }
    .legal-hero-left { padding: 56px 24px; }
    .legal-hero-right { height: 280px; }
    .legal-hero-stats { gap: 24px; margin-top: 36px; padding-top: 28px; }
    .legal-features-grid { grid-template-columns: 1fr; }
    .legal-who-grid { grid-template-columns: 1fr; }
    .legal-who-card { padding: 32px 24px; }
    .legal-process-steps { grid-template-columns: 1fr 1fr; }
    .legal-trust-inner { gap: 12px; }
    .legal-testi-content { padding-left: 0; }
    .legal-problem-section, .legal-features-section, .legal-who-section,
    .legal-process-section, .legal-testimonial-section, .legal-final-cta { padding: 64px 0; }
}

@media (max-width: 540px) {
    .legal-process-steps { grid-template-columns: 1fr; }
    .legal-hero-btns { flex-direction: column; }
    .legal-btn-silver, .legal-btn-ghost { text-align: center; }
}

/* ── NAVIGATION OVERRIDE FOR LEGAL PAGE ── */
body.page-template-page-legal #site-nav {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

body.page-template-page-legal #site-nav.scrolled {
    background: rgba(255,255,255,0.98) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 2px 16px rgba(21,88,168,0.10) !important;
}

body.page-template-page-legal .logo {
    color: white !important;
}
body.page-template-page-legal #site-nav.scrolled .logo {
    color: var(--primary) !important;
}

body.page-template-page-legal .nav-links a {
    color: rgba(255,255,255,0.85) !important;
}
body.page-template-page-legal #site-nav.scrolled .nav-links a {
    color: var(--text-dim) !important;
}

body.page-template-page-legal .nav-btn {
    background: white !important;
    color: var(--primary) !important;
}
body.page-template-page-legal #site-nav.scrolled .nav-btn {
    background: var(--primary) !important;
    color: white !important;
}

body.page-template-page-legal #nav-toggle span {
    background: white !important;
}
body.page-template-page-legal #site-nav.scrolled #nav-toggle span {
    background: var(--text) !important;
}

@media (max-width: 768px) {
    body.page-template-page-legal .nav-links a {
        color: var(--text-dim) !important;
    }
    body.page-template-page-legal .nav-links a:hover {
        color: var(--primary) !important;
    }
}