/* ==========================================================================
   1337 FORUM — MODERN CYBER TERMS & POLICY PORTAL DESIGN SYSTEM
   Professional Split-Column Architecture | Dark Cyber Aesthetic
   ========================================================================== */

/* Container breakout for full-width documentation and contact portals */
.portal-full-width,
.content-container:has(.terms-page-wrap),
#contnet:has(.terms-page-wrap),
body.has-portal-layout .content-container,
body.has-portal-layout #contnet {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.terms-page-wrap {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    min-height: 100vh !important;
    background: #060b14 !important;
    color: #cbd5e1 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", -apple-system, Roboto, "Helvetica Neue", sans-serif !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
    padding-bottom: 100px !important;
}

/* Background Atmospheric Grid & Radial Glow */
.terms-page-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
                radial-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 36px 36px;
    pointer-events: none;
    z-index: 0;
}

/* Hero Banner Canopy */
.terms-hero-canopy {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(56, 189, 248, 0.16);
    background: linear-gradient(180deg, rgba(13, 23, 44, 0.8) 0%, rgba(6, 11, 20, 0.95) 100%);
    padding: 76px 24px 38px !important;
    box-sizing: border-box;
}

.terms-hero-canopy-inner {
    max-width: 1240px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Split Hero Canopy (Left Content, Right macOS Quickcard) */
.terms-hero-split {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: center;
}

@media (max-width: 980px) {
    .terms-hero-split {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.terms-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.terms-hero-right {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 980px) {
    .terms-hero-right {
        justify-content: flex-start;
    }
}

/* macOS Hero Quickcard */
.macos-hero-quickcard {
    width: 100%;
    max-width: 340px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

html[data-site-mode="day"] .macos-hero-quickcard {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06) !important;
}

.macos-quickcard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(10, 17, 32, 0.85);
    border-bottom: 1px solid rgba(56, 189, 248, 0.14);
}

html[data-site-mode="day"] .macos-quickcard-header {
    background: rgba(248, 250, 252, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.macos-quickcard-title {
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

html[data-site-mode="day"] .macos-quickcard-title {
    color: #475569 !important;
}

.macos-quickcard-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.macos-quickcard-metric {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.metric-dot--green {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
.metric-dot--blue {
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
.metric-dot--purple {
    background: #a855f7;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.metric-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-val {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
}

html[data-site-mode="day"] .metric-val {
    color: #0f172a !important;
}

.terms-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.terms-hero-eyebrow span.beacon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: termsPulse 2s infinite;
}

@keyframes termsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.terms-hero-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 12px 0;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.terms-hero-title .accent-cyan {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.terms-hero-desc {
    font-size: 15.5px;
    color: #94a3b8;
    max-width: 720px;
    margin: 0 0 22px 0;
    line-height: 1.6;
}

/* Quick Stat Ribbon */
.terms-stat-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.terms-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 10px;
    padding: 7px 12px;
    transition: all 140ms ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.terms-stat-chip .chip-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-size: 13px;
}

.terms-stat-chip .chip-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.terms-stat-chip .chip-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    line-height: 1.1;
}

.terms-stat-chip .chip-val {
    font-size: 11.5px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Layout Shell and Containers */
.terms-shell,
.terms-container,
.terms-portal-container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 36px auto 0;
    padding: 0 24px;
    box-sizing: border-box;
}

.terms-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

/* Left Column: Sticky Sidebar */
.terms-sidebar {
    position: sticky;
    top: 65px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.terms-sidebar-box {
    background: #0c1527;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.terms-sidebar-label {
    font-size: 10.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.terms-sidebar-label i {
    color: #38bdf8;
}

/* Document Switcher Nav */
.terms-doc-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.terms-doc-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    background: transparent;
    border: 1px solid transparent;
    transition: all 140ms ease;
}

.terms-doc-link:hover {
    background: rgba(56, 189, 248, 0.08);
    color: #f8fafc !important;
    border-color: rgba(56, 189, 248, 0.25);
    transform: translateX(3px);
}

.terms-doc-link.active {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8 !important;
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.terms-doc-link i {
    font-size: 13px;
    width: 16px;
    text-align: center;
}

/* Quick Jump Table of Contents */
.terms-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.terms-toc-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 12px;
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: all 140ms ease;
}

.terms-toc-item:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.08);
    padding-left: 10px;
}

.terms-toc-item.active {
    color: #38bdf8 !important;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.12);
}

.terms-toc-num {
    font-family: monospace;
    font-size: 10.5px;
    color: #38bdf8;
    font-weight: 700;
}

/* Telemetry Founder Widget */
.terms-telemetry-widget {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(12, 21, 39, 0.8));
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 10px;
    padding: 12px 14px;
}

.terms-telemetry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
}

.terms-telemetry-desc,
.terms-telemetry-body {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 8px;
}

.terms-telemetry-link,
.terms-tg-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35) !important;
    transition: all 160ms ease !important;
    box-sizing: border-box !important;
    letter-spacing: 0.2px !important;
}

.terms-telemetry-link:hover,
.terms-tg-btn:hover {
    background: linear-gradient(135deg, #0099e6 0%, #0088cc 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

.terms-telemetry-link i,
.terms-tg-btn i {
    font-size: 13px !important;
}

/* TL;DR Executive Cards Grid */
.terms-tldr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.terms-tldr-card {
    background: #0b1325;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease;
}

.terms-tldr-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.45);
}

.terms-tldr-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.terms-tldr-card--emerald::before {
    background: linear-gradient(90deg, #34d399, #059669);
}

.terms-tldr-card--violet::before {
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
}

.terms-tldr-icon {
    font-size: 20px;
    color: #38bdf8;
    margin-bottom: 12px;
}

.terms-tldr-card--emerald .terms-tldr-icon {
    color: #34d399;
}

.terms-tldr-card--violet .terms-tldr-icon {
    color: #a78bfa;
}

.terms-tldr-card h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc !important;
}

.terms-tldr-card p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.55;
}

/* Modular Content Section Cards */
.terms-card-block {
    background: #0c1527;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 14px;
    padding: 32px 34px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    scroll-margin-top: 40px;
    transition: border-color 180ms ease;
    box-sizing: border-box;
}

.terms-card-block .macos-window-header {
    margin: -32px -34px 24px;
    border-radius: 14px 14px 0 0;
}

.terms-card-block:hover {
    border-color: rgba(56, 189, 248, 0.35);
}

.terms-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.14);
}

.terms-card-index {
    font-family: monospace;
    font-size: 12px;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.terms-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc !important;
    letter-spacing: -0.01em;
}

.terms-card-block p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 16px 0;
}

.terms-card-block p:last-child {
    margin-bottom: 0;
}

/* Sub-Rule Cards Grid (Inside Section 2) */
.terms-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin: 20px 0;
    align-items: stretch;
}

.terms-subcard {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 160ms ease;
    height: 100%;
    box-sizing: border-box;
}

.terms-subcard:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(56, 189, 248, 0.38);
    transform: translateY(-2px);
}

.terms-subcard-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.terms-subcard-icon {
    font-size: 16px;
}

.terms-subcard-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}

.terms-subcard p {
    margin: 0 0 8px 0;
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
}

.terms-subcard p:last-child {
    margin-bottom: 0;
}

/* TL;DR Strip Component */
.terms-tldr-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 32px !important;
}

.terms-tldr-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 180ms ease;
    box-sizing: border-box;
}

.terms-tldr-card h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
}

.terms-tldr-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #94a3b8;
}

.terms-tldr-card--cyan {
    border-top: 3px solid #38bdf8 !important;
}

.terms-tldr-card--emerald {
    border-top: 3px solid #22c55e !important;
}

.terms-tldr-card--violet {
    border-top: 3px solid #a855f7 !important;
}

.terms-tldr-icon {
    font-size: 20px;
    margin-bottom: 2px;
}
.terms-tldr-card--cyan .terms-tldr-icon { color: #38bdf8; }
.terms-tldr-card--emerald .terms-tldr-icon { color: #22c55e; }
.terms-tldr-card--violet .terms-tldr-icon { color: #a855f7; }

@media (max-width: 900px) {
    .terms-tldr-strip {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

.terms-subcard code {
    background: rgba(30, 41, 59, 0.9);
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12.5px;
    font-family: monospace;
}

/* Callout Highlights */
.terms-callout {
    background: rgba(14, 165, 233, 0.08);
    border-left: 3px solid #38bdf8;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 20px 0;
}

.terms-callout p {
    margin: 0;
    font-size: 14.5px;
    color: #f1f5f9;
    font-weight: 500;
}

.terms-warning-box {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 20px 0;
}

.terms-warning-box p {
    margin: 0;
    font-size: 14px;
    color: #fef3c7;
}

/* Footer Banner CTA */
.terms-banner-cta {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.terms-banner-cta-text h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
}

.terms-banner-cta-text p {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
}

.terms-banner-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
    transition: all 160ms ease;
}

.terms-banner-cta-btn:hover {
    background: linear-gradient(135deg, #38bdf8, #3b82f6);
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.45);
    transform: translateY(-2px);
}

/* Responsive Breakpoints & Mobile Parity */
@media (max-width: 1080px) {
    .terms-grid {
        grid-template-columns: 1fr;
    }
    .terms-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .terms-telemetry-widget {
        grid-column: span 2;
    }
    .contact-grid-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .terms-hero-canopy {
        padding: 68px 16px 24px !important;
    }
    .terms-hero-eyebrow {
        font-size: 10px !important;
        padding: 4px 10px !important;
        margin-bottom: 10px !important;
    }
    .terms-hero-title {
        font-size: 24px !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
    }
    .terms-hero-desc {
        font-size: 13.5px !important;
        line-height: 1.6 !important;
        margin-bottom: 14px !important;
    }
    .terms-stat-ribbon {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .terms-stat-chip {
        padding: 8px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 8px !important;
    }
    .terms-stat-chip .chip-icon-box {
        width: 26px !important;
        height: 26px !important;
        font-size: 11.5px !important;
    }
    .terms-stat-chip .chip-label {
        font-size: 8.5px !important;
    }
    .terms-stat-chip .chip-val {
        font-size: 11px !important;
    }
    .terms-hero-split {
        gap: 20px !important;
    }
    .terms-hero-right {
        width: 100% !important;
    }
    .macos-hero-quickcard {
        max-width: 100% !important;
    }
    .terms-shell,
    .terms-container,
    .terms-portal-container {
        padding: 0 14px !important;
        margin-top: 18px !important;
    }
    .terms-sidebar {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        width: 100% !important;
        gap: 14px !important;
    }
    .terms-doc-nav {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 8px !important;
        gap: 8px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .terms-doc-link {
        flex: 0 0 auto !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
    .terms-card-block {
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }
    .macos-window-header {
        margin: -20px -16px 16px !important;
        padding: 10px 14px !important;
    }
    .macos-window-actions span {
        display: none !important;
    }
    .terms-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    .terms-card-header h3 {
        font-size: 18px !important;
    }
    .terms-rules-grid,
    .terms-summary-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .contact-grid-wrap {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .contact-row-split {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .contact-input-group input {
        height: 44px !important;
        font-size: 14px !important;
    }
    .contact-input-group textarea {
        min-height: 110px !important;
        font-size: 14px !important;
    }
    .contact-submit-mac {
        width: 100% !important;
        justify-content: center !important;
        height: 46px !important;
        font-size: 14px !important;
    }
    .terms-banner-cta {
        padding: 20px 16px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
    }
    .terms-banner-cta-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ==========================================================================
   macOS LIGHT MODE DUAL-THEME OVERRIDES FOR TERMS PORTAL
   ========================================================================== */
html[data-site-mode="day"] .terms-page-wrap {
    background: #f4f6fa !important;
    color: #1e293b !important;
}

html[data-site-mode="day"] .terms-page-wrap::before {
    background: radial-gradient(circle at 20% 0%, rgba(0, 122, 255, 0.06) 0%, transparent 60%),
                radial-gradient(circle at 80% 10%, rgba(2, 132, 199, 0.05) 0%, transparent 50%),
                radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 36px 36px !important;
}

html[data-site-mode="day"] .terms-hero-canopy {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 246, 250, 0.95) 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-site-mode="day"] .terms-hero-eyebrow {
    background: rgba(0, 122, 255, 0.08) !important;
    border: 1px solid rgba(0, 122, 255, 0.22) !important;
    color: #007aff !important;
}

html[data-site-mode="day"] .terms-hero-eyebrow span.beacon-dot {
    background: #007aff !important;
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.6) !important;
}

html[data-site-mode="day"] .terms-hero-title {
    color: #0f172a !important;
}

html[data-site-mode="day"] .terms-hero-title .accent-cyan {
    background: linear-gradient(135deg, #007aff 0%, #0284c7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html[data-site-mode="day"] .terms-hero-desc {
    color: #475569 !important;
}

html[data-site-mode="day"] .terms-stat-chip {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html[data-site-mode="day"] .terms-stat-chip .chip-icon-box {
    background: rgba(0, 122, 255, 0.08) !important;
    color: #007aff !important;
}

html[data-site-mode="day"] .terms-stat-chip .chip-label {
    color: #64748b !important;
}

html[data-site-mode="day"] .terms-stat-chip .chip-val {
    color: #0f172a !important;
}

html[data-site-mode="day"] .terms-sidebar-box,
html[data-site-mode="day"] .terms-telemetry-widget,
html[data-site-mode="day"] .terms-tldr-card,
html[data-site-mode="day"] .terms-card-block,
html[data-site-mode="day"] .terms-subcard {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    color: #1e293b !important;
}

html[data-site-mode="day"] .terms-card-header h3,
html[data-site-mode="day"] .terms-subcard-title,
html[data-site-mode="day"] .terms-tldr-card h4 {
    color: #0f172a !important;
}

html[data-site-mode="day"] .terms-doc-link {
    color: #64748b !important;
}

html[data-site-mode="day"] .terms-doc-link.active {
    background: rgba(0, 122, 255, 0.1) !important;
    color: #007aff !important;
    border-color: rgba(0, 122, 255, 0.3) !important;
}

html[data-site-mode="day"] .terms-toc-item {
    color: #64748b !important;
}

html[data-site-mode="day"] .terms-toc-item:hover,
html[data-site-mode="day"] .terms-toc-item.active {
    color: #007aff !important;
    background: rgba(0, 122, 255, 0.08) !important;
    border-left: 2px solid #007aff !important;
}

html[data-site-mode="day"] .terms-callout {
    background: rgba(0, 122, 255, 0.05) !important;
    border-left-color: #007aff !important;
    color: #1e293b !important;
}

html[data-site-mode="day"] .terms-banner-cta {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 244, 255, 0.9) 100%) !important;
    border-color: rgba(0, 122, 255, 0.2) !important;
    box-shadow: 0 14px 40px rgba(0, 122, 255, 0.08) !important;
}

html[data-site-mode="day"] .terms-banner-cta-text h4 {
    color: #0f172a !important;
}

html[data-site-mode="day"] .terms-banner-cta-text p {
    color: #475569 !important;
}

html[data-site-mode="day"] .terms-card-block p,
html[data-site-mode="day"] .terms-subcard p,
html[data-site-mode="day"] .terms-tldr-card p,
html[data-site-mode="day"] .terms-item-desc {
    color: #334155 !important;
}

html[data-site-mode="day"] .terms-callout p {
    color: #1e293b !important;
}

html[data-site-mode="day"] .terms-warning-box {
    background: rgba(245, 158, 11, 0.08) !important;
    border-left-color: #d97706 !important;
}

html[data-site-mode="day"] .terms-warning-box p {
    color: #92400e !important;
}

html[data-site-mode="day"] .terms-quote-box {
    background: rgba(0, 122, 255, 0.05) !important;
    border-left-color: #007aff !important;
    color: #1e293b !important;
}

html[data-site-mode="day"] .terms-quote-box p,
html[data-site-mode="day"] .terms-quote-text {
    color: #1e293b !important;
}

html[data-site-mode="day"] .terms-card-index {
    color: #007aff !important;
    background: rgba(0, 122, 255, 0.08) !important;
    border-color: rgba(0, 122, 255, 0.22) !important;
}

html[data-site-mode="day"] .terms-card-header {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-site-mode="day"] .terms-telemetry-header {
    color: #0f172a !important;
    font-weight: 800 !important;
}

html[data-site-mode="day"] .terms-telemetry-header i {
    color: #007aff !important;
}

html[data-site-mode="day"] .terms-telemetry-body,
html[data-site-mode="day"] .terms-telemetry-desc {
    color: #475569 !important;
}

html[data-site-mode="day"] .macos-window-title {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-site-mode="day"] .macos-window-actions span {
    color: #64748b !important;
    opacity: 1 !important;
}

html[data-site-mode="day"] .terms-subcard {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

html[data-site-mode="day"] .terms-subcard:hover {
    background: #ffffff !important;
    border-color: rgba(0, 122, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.08) !important;
}

html[data-site-mode="day"] .terms-tldr-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}
