/* =========================================================
   LEGAL BEAUTY CSS — Privacy Policy & Terms and Conditions
   Ares Energy & Electricals
   ========================================================= */

/* ── Variables ── */
:root {
    --legal-hero-bg: linear-gradient(135deg, #0a0f1e 0%, #111827 50%, #0d1a2e 100%);
    --legal-accent: #f38b2a;
    --legal-accent-soft: rgba(243, 139, 42, 0.12);
    --legal-bg: #f8f9fc;
    --legal-white: #ffffff;
    --legal-card-bg: #ffffff;
    --legal-border: #e5e7eb;
    --legal-text: #1f2937;
    --legal-text-light: #6b7280;
    --legal-toc-width: 260px;
    --legal-radius: 14px;
    --legal-shadow: 0 2px 20px rgba(0,0,0,0.07);
    --legal-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

/* ── Page Background ── */
.legal-main {
    background: var(--legal-bg);
    padding: 3rem 0 5rem;
}

/* =========================================================
   HERO BANNER
   ========================================================= */
.legal-hero {
    position: relative;
    background: var(--legal-hero-bg);
    padding: 5rem 0 4rem;
    overflow: hidden;
    text-align: center;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(243, 139, 42, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--legal-accent), transparent);
}

.legal-hero--terms {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

.legal-hero--terms::before {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(243, 139, 42, 0.1) 0%, transparent 50%);
}

.legal-hero--terms::after {
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
}

.legal-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.legal-hero-content {
    position: relative;
    z-index: 2;
}

.legal-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 2rem;
}
.legal-breadcrumb a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.legal-breadcrumb a:hover { color: var(--legal-accent); }
.legal-breadcrumb span { color: rgba(255,255,255,0.85); }
.legal-breadcrumb svg { color: rgba(255,255,255,0.4); }

.legal-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(243, 139, 42, 0.15);
    border: 2px solid rgba(243, 139, 42, 0.35);
    margin-bottom: 1.5rem;
    color: var(--legal-accent);
}
.legal-hero-icon svg { width: 32px; height: 32px; }

.legal-hero--terms .legal-hero-icon {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.35);
    color: #a78bfa;
}

.legal-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.legal-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 580px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.legal-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    font-weight: 500;
}

.legal-badge--netcc {
    background: rgba(243,139,42,0.15);
    border-color: rgba(243,139,42,0.35);
    color: #fbbf24;
}

/* =========================================================
   LAYOUT — Sidebar + Content
   ========================================================= */
.legal-layout {
    display: grid;
    grid-template-columns: var(--legal-toc-width) 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================================
   TABLE OF CONTENTS (Sidebar)
   ========================================================= */
.legal-toc {
    position: sticky;
    top: 100px;
}

.toc-inner {
    background: var(--legal-card-bg);
    border-radius: var(--legal-radius);
    padding: 1.5rem;
    box-shadow: var(--legal-shadow);
    border: 1px solid var(--legal-border);
}

.toc-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--legal-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--legal-border);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 0.2rem;
}

.toc-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--legal-text-light);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}
.toc-list a::before {
    content: counter(toc-counter);
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(0,0,0,0.2);
    min-width: 18px;
    text-align: right;
    flex-shrink: 0;
}
.toc-list a:hover {
    background: var(--legal-accent-soft);
    color: var(--legal-accent);
}
.toc-list a:hover::before { color: var(--legal-accent); }

.toc-list a.active {
    background: var(--legal-accent-soft);
    color: var(--legal-accent);
    font-weight: 600;
}
.toc-list a.active::before { color: var(--legal-accent); }

/* =========================================================
   LEGAL CONTENT SECTIONS
   ========================================================= */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.legal-section {
    background: var(--legal-card-bg);
    border-radius: var(--legal-radius);
    padding: 2rem 2rem 2rem 2rem;
    box-shadow: var(--legal-shadow);
    border: 1px solid var(--legal-border);
    display: flex;
    gap: 1.25rem;
    transition: box-shadow 0.2s;
    scroll-margin-top: 110px;
}
.legal-section:hover {
    box-shadow: var(--legal-shadow-lg);
}

/* Section Icon (Privacy Policy) */
.legal-section-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.legal-section-icon svg { width: 22px; height: 22px; }

.legal-section-icon.bg-blue    { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.legal-section-icon.bg-orange  { background: linear-gradient(135deg, #f38b2a, #d97706); }
.legal-section-icon.bg-purple  { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.legal-section-icon.bg-green   { background: linear-gradient(135deg, #10b981, #059669); }
.legal-section-icon.bg-yellow  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.legal-section-icon.bg-teal    { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.legal-section-icon.bg-indigo  { background: linear-gradient(135deg, #6366f1, #4338ca); }
.legal-section-icon.bg-rose    { background: linear-gradient(135deg, #f43f5e, #be123c); }
.legal-section-icon.bg-slate   { background: linear-gradient(135deg, #64748b, #475569); }

/* Section Number (Terms & Conditions) */
.legal-section-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f38b2a, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.legal-section-body {
    flex: 1;
    min-width: 0;
}

.legal-section-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--legal-text);
    margin: 0 0 0.85rem;
    line-height: 1.3;
}

.legal-section-body p {
    color: #374151;
    line-height: 1.75;
    margin-bottom: 0.85rem;
}
.legal-section-body p:last-child { margin-bottom: 0; }

/* ── Legal List ── */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
}
.legal-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--legal-accent);
}
.legal-list.no-icon li {
    padding-left: 1rem;
    position: relative;
}
.legal-list.no-icon li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--legal-accent);
    font-weight: 700;
}

/* ── Notice Boxes ── */
.legal-notice-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    margin-top: 1rem;
    color: #1e40af;
}
.legal-notice-box svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #3b82f6;
}
.legal-notice-box p { margin: 0; color: #1e40af; font-size: 0.9rem; }

.legal-notice-box.notice-success {
    background: #f0fdf4;
    border-left-color: #10b981;
    color: #065f46;
}
.legal-notice-box.notice-success svg { color: #10b981; }
.legal-notice-box.notice-success p { color: #065f46; }

.legal-notice-box.notice-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}
.legal-notice-box.notice-warning svg { color: #f59e0b; }
.legal-notice-box.notice-warning p { color: #92400e; }

/* ── Compliance Strip ── */
.compliance-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.comp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 600;
}
.comp-badge svg { color: #10b981; }

/* ── Info Cards Grid (What We Collect) ── */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid var(--legal-border);
    border-radius: 10px;
    transition: all 0.2s;
}
.info-card:hover {
    background: #fff;
    border-color: var(--legal-accent);
    box-shadow: 0 4px 16px rgba(243,139,42,0.1);
}

.info-card-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--legal-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--legal-accent);
}
.info-card-icon svg { width: 16px; height: 16px; }

.info-card h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--legal-text);
    margin: 0 0 0.25rem;
}
.info-card p {
    font-size: 0.8rem;
    color: var(--legal-text-light);
    margin: 0;
    line-height: 1.5;
}

/* ── Highlight Box ── */
.legal-highlight-box {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    margin-top: 0.5rem;
}
.legal-highlight-box .highlight-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    color: #92400e;
    font-weight: 700;
}
.legal-highlight-box .highlight-header svg { color: #f59e0b; }
.legal-highlight-box p {
    color: #78350f;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.legal-highlight-box.highlight-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
}
.legal-highlight-box.highlight-blue .highlight-header { color: #1e40af; }
.legal-highlight-box.highlight-blue .highlight-header svg { color: #3b82f6; }
.legal-highlight-box.highlight-blue p { color: #1e3a8a; }

.legal-highlight-box.highlight-dark {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-color: #cbd5e1;
}
.legal-highlight-box.highlight-dark .highlight-header { color: #1e293b; }
.legal-highlight-box.highlight-dark .highlight-header svg { color: #64748b; }
.legal-highlight-box.highlight-dark p { color: #334155; }

/* ── Sharing Grid ── */
.sharing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.sharing-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid var(--legal-border);
    font-size: 0.875rem;
    color: var(--legal-text);
    font-weight: 500;
    transition: all 0.2s;
}
.sharing-item:hover { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.sharing-item svg { color: var(--legal-accent); flex-shrink: 0; width: 18px; height: 18px; }

/* ── OAIC Box ── */
.oaic-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}
.oaic-box:hover { background: #dbeafe; }
.oaic-box svg { color: #3b82f6; }

/* ── Contact Card ── */
.legal-contact-section { flex-direction: column; }
.legal-contact-section .legal-section-icon { align-self: flex-start; }

.contact-card-legal {
    background: linear-gradient(135deg, #0a0f1e, #111827);
    border-radius: 14px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

.ccl-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.ccl-abn {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

.ccl-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.ccl-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}
.ccl-item svg { color: var(--legal-accent); flex-shrink: 0; width: 16px; height: 16px; }
.ccl-item:hover { color: var(--legal-accent); }

.ccl-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    background: var(--legal-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    width: fit-content;
    transition: all 0.2s;
}
.ccl-cta:hover { background: #e07a1a; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(243,139,42,0.35); }
.ccl-cta svg { width: 16px; height: 16px; }

/* ── Active Footer Link ── */
.active-footer-link {
    color: var(--legal-accent) !important;
    font-weight: 600 !important;
}

/* =========================================================
   TERMS AND CONDITIONS SPECIFIC ELEMENTS
   ========================================================= */

/* Company Info Bar */
.terms-company-bar {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    box-shadow: var(--legal-shadow);
    border: 1px solid var(--legal-border);
    margin-bottom: 0.5rem;
}

.tcb-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}
.tcb-item svg {
    flex-shrink: 0;
    color: var(--legal-accent);
    width: 20px;
    height: 20px;
    margin-top: 2px;
}
.tcb-item div { display: flex; flex-direction: column; }
.tcb-item span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--legal-text-light);
    font-weight: 600;
}
.tcb-item strong {
    font-size: 0.88rem;
    color: var(--legal-text);
    font-weight: 600;
    line-height: 1.3;
}

/* NETCC Badge */
.netcc-badge-row { margin-bottom: 1rem; }
.netcc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    background: linear-gradient(135deg, #0a0f1e, #1e293b);
    color: #fbbf24;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(251,191,36,0.3);
}
.netcc-badge svg { color: #fbbf24; }

/* Scope Two Column */
.scope-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.scope-col {
    padding: 1.25rem;
    border-radius: 12px;
}
.scope-col h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.scope-included {
    background: #f0fdf4;
    border: 1px solid #86efac;
}
.scope-included h3 { color: #166534; }
.scope-included h3 svg { color: #10b981; }
.scope-included p { color: #14532d; font-size: 0.9rem; margin: 0; }

.scope-excluded {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}
.scope-excluded h3 { color: #991b1b; }
.scope-excluded h3 svg { color: #ef4444; }

.legal-note {
    font-size: 0.88rem;
    color: var(--legal-text-light);
    font-style: italic;
    margin-top: 0.75rem;
}

/* Cable Allowances */
.cable-allowances {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 0.75rem 0 1rem;
}
.cable-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    background: #f9fafb;
    border: 1px solid var(--legal-border);
    border-radius: 10px;
    flex: 1;
    min-width: 160px;
}
.cable-item svg { color: var(--legal-accent); flex-shrink: 0; }
.cable-item div { display: flex; flex-direction: column; }
.cable-item strong { font-size: 0.88rem; color: var(--legal-text); }
.cable-item span { font-size: 0.78rem; color: var(--legal-text-light); }

/* Payment Highlight */
.payment-highlight {
    display: flex;
    gap: 1rem;
    margin: 0.75rem 0 1rem;
    flex-wrap: wrap;
}
.ph-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #0a0f1e, #1e293b);
    border-radius: 12px;
    flex: 1;
    min-width: 150px;
    text-align: center;
}
.ph-pct {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--legal-accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}
.ph-item span:last-child {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* Roof Two Col */
.roof-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}
.roof-type {
    padding: 1.25rem;
    background: #f9fafb;
    border: 1px solid var(--legal-border);
    border-radius: 12px;
}
.roof-type-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--legal-text);
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--legal-border);
}
.roof-type-header svg { color: var(--legal-accent); }

/* Warranty Card */
.warranty-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #0a0f1e, #1e293b);
    border-radius: 12px;
    margin-bottom: 1rem;
}
.warranty-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(243,139,42,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--legal-accent);
}
.warranty-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
}
.warranty-card p {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    margin: 0;
}

/* ACL Notice */
.acl-notice-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #6ee7b7;
    border-radius: 12px;
}
.acl-notice-box svg {
    flex-shrink: 0;
    color: #059669;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}
.acl-notice-box p {
    color: #065f46;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Large screens */
@media (max-width: 1100px) {
    .legal-layout {
        grid-template-columns: 220px 1fr;
        gap: 2rem;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }
    .legal-toc {
        position: static;
        order: -1;
    }
    .toc-inner {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.75rem 1.5rem;
        align-items: start;
    }
    .toc-title { grid-column: 1/-1; }
    .toc-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .scope-two-col,
    .roof-two-col {
        grid-template-columns: 1fr;
    }
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .legal-hero {
        padding: 4rem 0 3rem;
    }
    .legal-hero h1 {
        font-size: 1.85rem;
    }
    .legal-hero-icon {
        width: 58px;
        height: 58px;
    }
    .legal-meta-badges {
        flex-direction: column;
        align-items: center;
    }
    .legal-main {
        padding: 2rem 0 4rem;
    }
    .legal-section {
        flex-direction: column;
        padding: 1.5rem;
    }
    .legal-section-icon,
    .legal-section-number {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .legal-section-body h2 {
        font-size: 1.1rem;
    }
    .toc-inner {
        display: block;
    }
    .toc-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    .sharing-grid {
        grid-template-columns: 1fr;
    }
    .terms-company-bar {
        grid-template-columns: 1fr 1fr;
        padding: 1.25rem;
    }
    .scope-two-col,
    .roof-two-col {
        grid-template-columns: 1fr;
    }
    .payment-highlight {
        flex-direction: column;
    }
    .cable-allowances {
        flex-direction: column;
    }
    .contact-card-legal {
        padding: 1.5rem;
    }
    .ccl-details {
        grid-template-columns: 1fr;
    }
    .legal-breadcrumb {
        font-size: 0.78rem;
    }
    .compliance-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 400px) {
    .toc-list { grid-template-columns: 1fr; }
    .terms-company-bar { grid-template-columns: 1fr; }
    .legal-section { gap: 0.75rem; }
}
