/* PDFHub Menu & Policy Pages Polish CSS */

.menu-action.menu-featured{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;padding:12px;border:1px solid rgba(124,106,255,.24);background:linear-gradient(135deg,rgba(124,106,255,.13),rgba(56,217,245,.06));transition:border-color .2s,background .2s,transform .2s}
.menu-action.menu-featured:hover{border-color:rgba(124,106,255,.55);background:linear-gradient(135deg,rgba(124,106,255,.2),rgba(56,217,245,.1));transform:translateY(-1px)}
.menu-feature-icon{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(124,106,255,.25);border-radius:12px;background:rgba(124,106,255,.14);color:#b8adff}
.menu-feature-icon i{width:auto;color:inherit;font-size:1rem}
.menu-feature-copy{min-width:0;display:grid;gap:4px;align-content:center}
.menu-feature-title{color:#eeeef8;font-size:.8rem;font-weight:700;letter-spacing:.05px}
.menu-feature-subtitle{color:#8b8ba7;font-size:.65rem;font-weight:400;line-height:1.4}
.menu-feature-meta{display:flex;align-items:center;gap:8px;color:#8b8ba7;font-size:.7rem}
.menu-feature-meta>i{width:auto;color:inherit;font-size:.66rem}
.menu-feature-count{min-width:23px;padding:3px 6px;border:1px solid rgba(124,106,255,.24);border-radius:99px;background:rgba(124,106,255,.13);color:#c8c0ff;font-size:.65rem;font-weight:700;text-align:center}
.menu-status{display:flex;align-items:center;gap:6px;padding:10px 3px 1px;color:#8b8ba7;font-size:.61rem}.menu-status i{color:#00e5a0;margin-right:2px}.menu-status-dot{color:#303047;font-size:.5rem}.menu-section-label{padding:10px 9px 3px;color:#6f6f8d;font-size:.59rem;font-weight:700;letter-spacing:1px;text-transform:uppercase}.menu-action-note{margin-left:auto;color:#8b8ba7;font-size:.6rem;font-weight:500}.menu-search{align-items:center;position:relative}.menu-search>i{position:absolute;left:10px;color:#6b6b8a;font-size:.72rem;pointer-events:none}.menu-search input{padding-left:29px}

body.light .menu-action.menu-featured:hover{background:linear-gradient(135deg,rgba(124,106,255,.12),rgba(56,160,200,.06));color:#18182e}
body.light .menu-featured .menu-feature-icon{color:#6655d9}
body.light .menu-feature-title{color:#18182e}
body.light .menu-feature-subtitle,body.light .menu-feature-meta{color:#7070a0}
body.light .menu-feature-count{color:#5142bd;background:rgba(124,106,255,.1)}
body .menu-action.menu-featured:hover{background:linear-gradient(135deg,rgba(124,106,255,.2),rgba(56,217,245,.1))!important;color:inherit!important}
body .menu-action.menu-featured:hover .menu-feature-icon{color:#b8adff!important}
body.light .menu-action.menu-featured:hover{background:linear-gradient(135deg,rgba(124,106,255,.12),rgba(56,160,200,.06))!important;color:#18182e!important}
body.light .menu-action.menu-featured:hover .menu-feature-icon{color:#6655d9!important}

/* Shared Editorial Layouts */
.editorial-page{width:min(1160px,90%);padding:clamp(40px,6vw,72px) 0 80px;margin:0 auto}
.editorial-hero{max-width:820px;margin-bottom:40px}
.editorial-hero h1{max-width:800px;margin:16px 0 14px;font-size:clamp(2.4rem,5.5vw,3.8rem);line-height:1.06;letter-spacing:-.05em}
.editorial-hero .lead{max-width:740px;font-size:clamp(1rem,1.4vw,1.1rem);line-height:1.75;color:#9b9bb6;margin:0 0 18px}
.editorial-page .eyebrow{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border:1px solid rgba(0,229,160,.25);border-radius:99px;color:#00e5a0;font-size:.66rem;font-weight:700;letter-spacing:1px;text-transform:uppercase;background:rgba(0,229,160,.06)}

/* About Page Elements */
.about-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.principle-card{min-height:220px;padding:25px;border:1px solid #29293d;border-radius:18px;background:linear-gradient(145deg,rgba(18,18,31,.97),rgba(13,13,23,.92));box-shadow:0 16px 40px rgba(0,0,0,.12)}
.principle-icon{width:44px;height:44px;display:grid;place-items:center;margin-bottom:24px;border:1px solid rgba(124,106,255,.22);border-radius:13px;background:rgba(124,106,255,.1);color:#a99bff;font-size:1rem}
.principle-card h2,.about-note h2,.about-contact h2{margin:0 0 10px;font:700 1.08rem/1.35 'Syne',sans-serif;letter-spacing:-.02em}
.principle-card p,.about-note p,.about-contact p{margin:0;color:#9696ae;font-size:.86rem;line-height:1.8}
.editorial-section{margin-top:76px}
.section-heading{max-width:630px;margin-bottom:24px}
.section-heading h2{margin:15px 0 9px;font:700 clamp(1.55rem,3vw,2.25rem)/1.2 'Syne',sans-serif;letter-spacing:-.04em}
.section-heading>p{margin:0;color:#9696ae;font-size:.88rem;line-height:1.75}
.workflow-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none;counter-reset:workflow}
.workflow-list li{display:flex;gap:14px;min-height:130px;padding:20px 18px;border-top:1px solid #303047;background:linear-gradient(180deg,rgba(124,106,255,.055),transparent 75%)}
.workflow-list li>span{color:#9b8eff;font:700 .72rem 'DM Sans',sans-serif;letter-spacing:.08em}
.workflow-list h3{margin:0 0 6px;font:700 .9rem 'Syne',sans-serif}
.workflow-list p{margin:0;color:#9292aa;font-size:.78rem;line-height:1.7}
.about-note{display:flex;gap:18px;margin-top:55px;padding:25px;border:1px solid rgba(56,217,245,.18);border-radius:16px;background:linear-gradient(120deg,rgba(56,217,245,.055),rgba(124,106,255,.045))}
.about-note>i{flex:none;margin-top:3px;color:#54cfe2;font-size:1.15rem}
.about-contact{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:52px;padding:26px 0;border-top:1px solid #29293d}
.about-contact h2{margin-top:14px;font-size:1.35rem}
.about-contact p{max-width:590px}
.editorial-link{display:inline-flex;flex:none;align-items:center;gap:12px;padding:12px 16px;border:1px solid rgba(124,106,255,.32);border-radius:10px;background:rgba(124,106,255,.1);color:#d3ceff;text-decoration:none;font-size:.78rem;font-weight:600;transition:transform .2s,border-color .2s,background .2s}
.editorial-link:hover{transform:translateY(-2px);border-color:#7c6aff;background:rgba(124,106,255,.18)}

/* ─────────────────────────────────────────────────────────────
   TERMS & CONDITIONS PAGE (REDESIGNED)
───────────────────────────────────────────────────────────── */
.terms-page{width:min(1160px,90%)}
.terms-meta-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 16px;font-size:.76rem;color:#8e8ea8}
.meta-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:99px;background:rgba(124,106,255,.08);border:1px solid rgba(124,106,255,.2);color:#b3a7ff;font-weight:500}
.meta-dot{color:#363650;font-size:.5rem}
.terms-intro-note{display:flex;align-items:flex-start;gap:12px;max-width:760px;margin:20px 0 0;padding:14px 18px;border:1px solid rgba(56,217,245,.22);border-radius:12px;background:rgba(56,217,245,.05);color:#b6b5ca;font-size:.82rem;line-height:1.65}
.terms-intro-note i{margin-top:3px;color:#38d9f5;font-size:1rem;flex-shrink:0}

/* Mobile Collapsible TOC (< 1024px) */
.terms-toc-mobile{display:none;margin-bottom:32px;border:1px solid #28283e;border-radius:14px;background:#0f0f1b;overflow:hidden}
.terms-toc-summary{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;font:700 .86rem 'Syne',sans-serif;color:#eeeef8;cursor:pointer;list-style:none;user-select:none}
.terms-toc-summary::-webkit-details-marker{display:none}
.toc-summary-title{display:inline-flex;align-items:center;gap:9px}
.toc-summary-title i{color:#7c6aff}
.toc-caret{transition:transform .2s ease;color:#8e8ea8}
details[open] .toc-caret{transform:rotate(180deg)}
.terms-toc-mobile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;padding:14px 18px 18px;border-top:1px solid #202030;background:#0b0b14}
.toc-chip{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:8px;background:#141424;border:1px solid #242438;color:#9b9bb6;text-decoration:none;font-size:.76rem;font-weight:500;transition:all .15s}
.toc-chip:hover{color:#fff;border-color:#7c6aff;background:#1a1a30;transform:translateY(-1px)}
.toc-num{display:inline-block;padding:2px 5px;border-radius:4px;background:rgba(124,106,255,.15);color:#a89aff;font-size:.65rem;font-weight:700}

/* Desktop Constrained 2-Column Layout (>= 1024px) */
.terms-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:42px;align-items:start;margin-top:36px}
.terms-toc-desktop{position:sticky;top:84px;max-height:calc(100vh - 110px);overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:4px;padding:18px 14px;border:1px solid #26263c;border-radius:16px;background:#0d0d18;box-shadow:0 12px 32px rgba(0,0,0,.2)}
.terms-toc-desktop::-webkit-scrollbar{width:4px}
.terms-toc-desktop::-webkit-scrollbar-thumb{background:#30304a;border-radius:4px}
.toc-desktop-header{display:flex;align-items:center;justify-content:space-between;padding:0 8px 12px;border-bottom:1px solid #202034;margin-bottom:8px}
.toc-desktop-header h2{margin:0;font:700 .84rem 'Syne',sans-serif;color:#eeeef8}
.toc-badge{font-size:.65rem;font-weight:700;color:#00e5a0;background:rgba(0,229,160,.08);border:1px solid rgba(0,229,160,.2);padding:2px 7px;border-radius:99px}
.toc-desktop-links{display:flex;flex-direction:column;gap:3px}
.terms-nav-link{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;color:#8b8ba7;text-decoration:none;font-size:.75rem;font-weight:500;line-height:1.4;transition:all .15s ease}
.terms-nav-link .link-num{font-size:.66rem;font-weight:700;color:#6b6b8a;width:18px;flex-shrink:0}
.terms-nav-link:hover{color:#eeeef8;background:rgba(124,106,255,.08)}
.terms-nav-link.active{color:#fff;background:linear-gradient(90deg,rgba(124,106,255,.18),rgba(124,106,255,.05));border-left:2px solid #7c6aff;font-weight:600}
.terms-nav-link.active .link-num{color:#a99bff}

/* Legal Content Sections */
.legal-sections{display:grid;gap:20px}
.legal-section{scroll-margin-top:96px;padding:28px 30px;border:1px solid #24243a;border-radius:16px;background:#0e0e1a;box-shadow:0 10px 28px rgba(0,0,0,.15);transition:border-color .2s}
.legal-section:hover{border-color:#343450}
.legal-section-header{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.legal-number{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;border-radius:9px;background:rgba(124,106,255,.12);border:1px solid rgba(124,106,255,.25);color:#b3a7ff;font:700 .76rem 'DM Sans',sans-serif;letter-spacing:.05em}
.legal-section h2{margin:0;color:#eeeef8;font:700 1.12rem/1.35 'Syne',sans-serif;letter-spacing:-.02em}
.legal-section-body p{margin:0 0 14px;color:#9b9bb4;font-size:.87rem;line-height:1.8}
.legal-section-body p:last-child{margin-bottom:0}
.legal-list{margin:10px 0 14px;padding-left:20px;display:grid;gap:8px}
.legal-list li{color:#9b9bb4;font-size:.86rem;line-height:1.75}
.legal-list li strong{color:#eeeef8}
.legal-section code{padding:2px 6px;border-radius:5px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);font-size:.8rem;color:#38d9f5}

.terms-contact-card{display:flex;align-items:center;gap:16px;margin-top:16px;padding:16px 20px;border:1px solid #282840;border-radius:12px;background:#121222}
.contact-card-icon{width:42px;height:42px;border-radius:10px;background:rgba(124,106,255,.1);border:1px solid rgba(124,106,255,.2);display:grid;place-items:center;color:#9b8eff;font-size:1.1rem;flex-shrink:0}
.contact-card-content strong{display:block;font-size:.88rem;color:#eeeef8;margin-bottom:2px}
.contact-card-content p{margin:0 0 4px;font-size:.78rem;color:#8a8aa4}
.contact-link{display:inline-flex;align-items:center;gap:6px;color:#7c6aff;text-decoration:none;font-size:.78rem;font-weight:600}
.contact-link:hover{text-decoration:underline}

/* Summary Card before Footnote */
.terms-summary-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:48px;padding:26px 30px;border:1px solid rgba(124,106,255,.25);border-radius:18px;background:linear-gradient(135deg,rgba(124,106,255,.08),rgba(56,217,245,.04))}
.summary-card-text h3{margin:0 0 6px;font:700 1.05rem 'Syne',sans-serif;color:#eeeef8;display:flex;align-items:center;gap:9px}
.summary-card-text h3 i{color:#7c6aff}
.summary-card-text p{margin:0;color:#9292ab;font-size:.84rem;line-height:1.65;max-width:620px}
.summary-card-actions{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}
.summary-card-actions .btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:10px;font-size:.78rem;font-weight:600;text-decoration:none;cursor:pointer;border:1px solid #2d2d48;background:#151528;color:#eeeef8;transition:all .15s}
.summary-card-actions .btn:hover{border-color:#7c6aff;background:#1e1e36;color:#fff;transform:translateY(-1px)}
.terms-footnote{max-width:880px;margin:28px 0 0;color:#747490;font-size:.74rem;line-height:1.7}

/* ─────────────────────────────────────────────────────────────
   PRIVACY CENTER PAGE (REDESIGNED)
───────────────────────────────────────────────────────────── */
.privacy-page{width:min(1160px,90%)}

/* 4 Core Privacy Highlights */
.privacy-pillars-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:32px 0 40px}
.pillar-card{padding:24px 20px;border:1px solid #24243a;border-radius:16px;background:linear-gradient(150deg,#10101d,#0c0c16);box-shadow:0 8px 24px rgba(0,0,0,.15);display:flex;flex-direction:column}
.pillar-icon{width:42px;height:42px;border-radius:12px;background:rgba(124,106,255,.1);border:1px solid rgba(124,106,255,.2);display:grid;place-items:center;color:#a99bff;font-size:1.05rem;margin-bottom:18px}
.pillar-card h3{margin:0 0 8px;font:700 .94rem 'Syne',sans-serif;color:#eeeef8}
.pillar-card p{margin:0;color:#8e8ea6;font-size:.8rem;line-height:1.65}

/* Quick Anchor Jump Links */
.privacy-quick-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 18px;margin-bottom:34px;border:1px solid #24243a;border-radius:12px;background:#0e0e1a;font-size:.76rem}
.quick-nav-label{color:#6c6c88;font-weight:700;text-transform:uppercase;letter-spacing:.8px;margin-right:4px}
.privacy-quick-nav a{color:#9a8cff;text-decoration:none;padding:4px 9px;border-radius:6px;background:rgba(124,106,255,.07);border:1px solid rgba(124,106,255,.15);font-weight:500;transition:all .15s}
.privacy-quick-nav a:hover{background:rgba(124,106,255,.18);color:#fff;border-color:#7c6aff}

/* Privacy Content Cards */
.privacy-content-card{scroll-margin-top:90px;padding:32px 32px;margin-bottom:28px;border:1px solid #24243a;border-radius:18px;background:#0d0d18;box-shadow:0 10px 30px rgba(0,0,0,.14)}
.card-section-heading{margin-bottom:18px}
.section-tag{display:inline-block;padding:3px 8px;border-radius:99px;font-size:.65rem;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:#7c6aff;background:rgba(124,106,255,.1);border:1px solid rgba(124,106,255,.2);margin-bottom:8px}
.section-tag-action{color:#00e5a0;background:rgba(0,229,160,.08);border-color:rgba(0,229,160,.22)}
.card-section-heading h2{margin:0;font:700 1.25rem 'Syne',sans-serif;color:#eeeef8;letter-spacing:-.02em}
.privacy-content-card>p{color:#9a9ab3;font-size:.88rem;line-height:1.75;margin:0 0 20px}

/* Architecture Steps */
.architecture-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}
.arch-step{display:flex;gap:14px;padding:20px 18px;border:1px solid #202034;border-radius:14px;background:#111120}
.arch-step-num{display:grid;place-items:center;min-width:30px;height:30px;border-radius:8px;background:rgba(0,229,160,.12);border:1px solid rgba(0,229,160,.25);color:#00e5a0;font:700 .8rem 'DM Sans',sans-serif;flex-shrink:0}
.arch-step strong{display:block;font-size:.85rem;color:#eeeef8;margin-bottom:5px}
.arch-step p{margin:0;font-size:.78rem;color:#8b8ba4;line-height:1.6}

/* Privacy Matrix Table */
.matrix-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-top:16px;border:1px solid #24243a;border-radius:14px}
.privacy-matrix-table{width:100%;border-collapse:collapse;text-align:left;font-size:.8rem}
.privacy-matrix-table th{padding:14px 18px;background:#131322;color:#d5d5ea;font:700 .74rem 'Syne',sans-serif;letter-spacing:.5px;text-transform:uppercase;border-bottom:1px solid #24243a}
.privacy-matrix-table td{padding:16px 18px;border-bottom:1px solid #1c1c2e;color:#9a9ab3;vertical-align:top;line-height:1.65}
.privacy-matrix-table tr:last-child td{border-bottom:none}
.privacy-matrix-table td strong{display:block;color:#eeeef8;font-size:.83rem;margin-bottom:2px}
.privacy-matrix-table td small{display:block;color:#787895;font-size:.73rem;line-height:1.5}
.badge-pill{display:inline-block;padding:2px 8px;border-radius:99px;font-size:.66rem;font-weight:700;letter-spacing:.4px;white-space:nowrap}
.badge-local{background:rgba(0,229,160,.1);color:#00e5a0;border:1px solid rgba(0,229,160,.25)}
.badge-hybrid{background:rgba(124,106,255,.1);color:#b3a7ff;border:1px solid rgba(124,106,255,.25)}
.badge-api{background:rgba(56,217,245,.1);color:#38d9f5;border:1px solid rgba(56,217,245,.25)}

/* External Services & CDNs */
.external-services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.service-item{display:flex;gap:14px;padding:18px;border:1px solid #202034;border-radius:14px;background:#10101f}
.service-icon{width:36px;height:36px;border-radius:9px;background:rgba(56,217,245,.1);border:1px solid rgba(56,217,245,.2);display:grid;place-items:center;color:#38d9f5;font-size:.95rem;flex-shrink:0}
.service-item strong{display:block;font-size:.82rem;color:#eeeef8;margin-bottom:4px}
.service-item p{margin:0;font-size:.76rem;color:#8a8aa4;line-height:1.6}

/* Local Storage Inventory */
.storage-keys-list{display:grid;gap:12px;margin-top:14px}
.storage-key-row{padding:16px 18px;border:1px solid #202034;border-radius:12px;background:#10101f}
.storage-key-row code{font-family:monospace;font-size:.82rem;font-weight:700;color:#00e5a0;background:rgba(0,229,160,.08);padding:3px 8px;border-radius:6px;border:1px solid rgba(0,229,160,.2)}
.key-type{margin-left:10px;font-size:.7rem;font-weight:600;color:#787895}
.storage-key-row p{margin:8px 0 0;font-size:.8rem;color:#9292ad;line-height:1.6}

/* ─────────────────────────────────────────────────────────────
   MANAGE LOCAL DATA (REDESIGNED INTERACTIVE SECTION)
───────────────────────────────────────────────────────────── */
.local-data-card{border:1px solid rgba(124,106,255,.3);background:linear-gradient(160deg,#111122,#0b0b14)}
.manage-data-desc{margin-bottom:24px!important}

.live-storage-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:26px}
.storage-stat{padding:18px 16px;border:1px solid #262640;border-radius:14px;background:#141426;display:flex;flex-direction:column}
.stat-label{font-size:.72rem;font-weight:700;color:#8c8ca8;margin-bottom:6px;display:flex;align-items:center;gap:6px}
.stat-label i{color:#7c6aff}
.stat-value{font:800 1.25rem 'Syne',sans-serif;color:#eeeef8;margin-bottom:4px}
.stat-hint{font-size:.66rem;color:#6d6d88}

.data-scope-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:20px;border:1px solid #222238;border-radius:14px;background:#0d0d17;margin-bottom:24px}
.scope-col h4{margin:0 0 10px;font:700 .82rem 'Syne',sans-serif;display:flex;align-items:center;gap:8px}
.scope-included h4{color:#00e5a0}
.scope-excluded h4{color:#38d9f5}
.scope-col ul{margin:0;padding-left:18px;display:grid;gap:6px}
.scope-col li{font-size:.78rem;color:#8e8ea8;line-height:1.55}

.manage-actions-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.btn-clear-data{display:inline-flex;align-items:center;gap:9px;padding:12px 22px;border-radius:10px;border:1px solid rgba(255,95,126,.35);background:rgba(255,95,126,.12);color:#ff7895;font:700 .84rem 'DM Sans',sans-serif;cursor:pointer;transition:all .2s ease}
.btn-clear-data:hover{background:#ff5f7e;color:#fff;border-color:#ff5f7e;box-shadow:0 6px 20px rgba(255,95,126,.3);transform:translateY(-1px)}
.storage-live-status{font-size:.78rem;color:#8a8aa4;display:flex;align-items:center;gap:7px}
.status-success{color:#00e5a0;font-weight:600}
.status-error{color:#ff5f7e;font-weight:600}

/* Security Practice Cards */
.best-practices-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}
.practice-card{padding:22px 20px;border:1px solid #202034;border-radius:14px;background:#10101f}
.practice-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:rgba(255,95,126,.08);border:1px solid rgba(255,95,126,.2);color:#ff7895;font-size:1rem;margin-bottom:14px}
.practice-card h4{margin:0 0 8px;font:700 .9rem 'Syne',sans-serif;color:#eeeef8}
.practice-card p{margin:0;font-size:.78rem;color:#8a8aa4;line-height:1.65}

/* ─────────────────────────────────────────────────────────────
   ACCESSIBLE DATA CONFIRMATION MODAL
───────────────────────────────────────────────────────────── */
.data-modal-backdrop{position:fixed;inset:0;z-index:9999;background:rgba(5,5,10,.75);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:none;place-items:center;padding:20px}
.data-modal-backdrop.open{display:grid}
.data-modal-card{width:min(480px,100%);padding:28px 28px 24px;border-radius:20px;background:#111122;border:1px solid #30304a;box-shadow:0 24px 60px rgba(0,0,0,.5);animation:modalIn .18s ease-out}
@keyframes modalIn{from{opacity:0;transform:scale(.95) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}
.modal-card-icon{width:48px;height:48px;border-radius:14px;background:rgba(255,95,126,.12);border:1px solid rgba(255,95,126,.25);display:grid;place-items:center;color:#ff5f7e;font-size:1.3rem;margin-bottom:16px}
.modal-card-title{margin:0 0 8px;font:800 1.25rem 'Syne',sans-serif;color:#eeeef8}
.modal-card-desc{margin:0 0 16px;font-size:.84rem;color:#9b9bb2;line-height:1.6}
.modal-checklist{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:8px}
.modal-checklist li{display:flex;align-items:center;gap:10px;font-size:.8rem;color:#c0c0d8}
.modal-checklist li i{color:#ff5f7e;font-size:.75rem}
.modal-warning-note{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:10px;background:rgba(56,217,245,.06);border:1px solid rgba(56,217,245,.2);font-size:.74rem;color:#9b9bb2;line-height:1.55;margin:0 0 22px}
.modal-warning-note i{color:#38d9f5;margin-top:2px}
.modal-actions-row{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.modal-actions-row .btn{padding:10px 18px;border-radius:9px;font:700 .8rem 'DM Sans',sans-serif;cursor:pointer;transition:all .15s}
.modal-actions-row .btn-secondary{background:#1a1a2e;color:#b0b0c8;border:1px solid #2e2e48}
.modal-actions-row .btn-secondary:hover{background:#24243e;color:#fff}
.btn-danger-confirm{display:inline-flex;align-items:center;gap:8px;background:#ff5f7e;color:#fff;border:none}
.btn-danger-confirm:hover{background:#e84c6c;box-shadow:0 4px 16px rgba(255,95,126,.4)}

/* ─────────────────────────────────────────────────────────────
   LIGHT THEME OVERRIDES FOR TERMS & PRIVACY
───────────────────────────────────────────────────────────── */
body.light .editorial-hero .lead{color:#606078}
body.light .terms-meta-bar{color:#707090}
body.light .meta-pill{background:rgba(91,71,224,.07);border-color:rgba(91,71,224,.2);color:#5b47e0}
body.light .meta-dot{color:#c5c5dc}
body.light .terms-intro-note{background:rgba(2,132,199,.06);border-color:rgba(2,132,199,.2);color:#404058}
body.light .terms-intro-note i{color:#0284c7}
body.light .terms-toc-mobile{background:#fff;border-color:#dcdcfa}
body.light .terms-toc-summary{color:#18182e}
body.light .terms-toc-mobile-grid{background:#f6f6fc;border-color:#e4e4f4}
body.light .toc-chip{background:#fff;border-color:#dcdcfa;color:#505068}
body.light .toc-chip:hover{background:#f0f0fa;color:#18182e;border-color:#5b47e0}
body.light .toc-num{background:rgba(91,71,224,.1);color:#5b47e0}

body.light .terms-toc-desktop{background:#fff;border-color:#deddf0;box-shadow:0 8px 24px rgba(40,35,90,.05)}
body.light .toc-desktop-header{border-color:#eaeaee}
body.light .toc-desktop-header h2{color:#18182e}
body.light .terms-nav-link{color:#686888}
body.light .terms-nav-link .link-num{color:#8888a4}
body.light .terms-nav-link:hover{color:#18182e;background:rgba(91,71,224,.06)}
body.light .terms-nav-link.active{color:#5b47e0;background:rgba(91,71,224,.08);border-left-color:#5b47e0}
body.light .terms-nav-link.active .link-num{color:#5b47e0}

body.light .legal-section{background:#fff;border-color:#deddf0;box-shadow:0 6px 20px rgba(40,35,90,.04)}
body.light .legal-section:hover{border-color:#c8c8e8}
body.light .legal-section h2{color:#18182e}
body.light .legal-number{background:rgba(91,71,224,.08);border-color:rgba(91,71,224,.22);color:#5b47e0}
body.light .legal-section-body p,body.light .legal-list li{color:#505066}
body.light .legal-list li strong{color:#18182e}
body.light .legal-section code{background:#f0f0fa;border-color:#deddf0;color:#0284c7}
body.light .terms-contact-card{background:#f7f7fc;border-color:#deddf0}
body.light .contact-card-icon{background:rgba(91,71,224,.08);border-color:rgba(91,71,224,.2);color:#5b47e0}
body.light .contact-card-content strong{color:#18182e}
body.light .contact-card-content p{color:#707088}
body.light .contact-link{color:#5b47e0}

body.light .terms-summary-card{background:linear-gradient(135deg,rgba(91,71,224,.06),rgba(2,132,199,.04));border-color:rgba(91,71,224,.2)}
body.light .summary-card-text h3{color:#18182e}
body.light .summary-card-text h3 i{color:#5b47e0}
body.light .summary-card-text p{color:#606078}
body.light .summary-card-actions .btn{background:#fff;border-color:#d5d5e8;color:#18182e}
body.light .summary-card-actions .btn:hover{background:#f0f0fa;border-color:#5b47e0;color:#5b47e0}
body.light .terms-footnote{color:#808098}

body.light .pillar-card{background:#fff;border-color:#deddf0;box-shadow:0 6px 20px rgba(40,35,90,.04)}
body.light .pillar-icon{background:rgba(91,71,224,.08);border-color:rgba(91,71,224,.2);color:#5b47e0}
body.light .pillar-card h3{color:#18182e}
body.light .pillar-card p{color:#606078}

body.light .privacy-quick-nav{background:#fff;border-color:#deddf0}
body.light .privacy-quick-nav a{background:rgba(91,71,224,.06);border-color:rgba(91,71,224,.18);color:#5b47e0}
body.light .privacy-quick-nav a:hover{background:#5b47e0;color:#fff}

body.light .privacy-content-card{background:#fff;border-color:#deddf0;box-shadow:0 8px 24px rgba(40,35,90,.04)}
body.light .card-section-heading h2{color:#18182e}
body.light .privacy-content-card>p{color:#606078}
body.light .arch-step{background:#f7f7fc;border-color:#e4e4f2}
body.light .arch-step-num{background:rgba(2,132,199,.1);border-color:rgba(2,132,199,.25);color:#0284c7}
body.light .arch-step strong{color:#18182e}
body.light .arch-step p{color:#606078}

body.light .matrix-table-wrap{border-color:#deddf0}
body.light .privacy-matrix-table th{background:#f4f4fa;color:#30304a;border-color:#deddf0}
body.light .privacy-matrix-table td{border-color:#ececf6;color:#505068}
body.light .privacy-matrix-table td strong{color:#18182e}
body.light .privacy-matrix-table td small{color:#787890}

body.light .service-item{background:#f7f7fc;border-color:#e4e4f2}
body.light .service-icon{background:rgba(2,132,199,.08);border-color:rgba(2,132,199,.2);color:#0284c7}
body.light .service-item strong{color:#18182e}
body.light .service-item p{color:#606078}

body.light .storage-key-row{background:#f7f7fc;border-color:#e4e4f2}
body.light .storage-key-row code{background:rgba(2,132,199,.08);border-color:rgba(2,132,199,.22);color:#0284c7}
body.light .storage-key-row p{color:#606078}

body.light .local-data-card{border-color:rgba(91,71,224,.3);background:linear-gradient(160deg,#fff,#f8f8fc)}
body.light .storage-stat{background:#f7f7fc;border-color:#deddf0}
body.light .stat-value{color:#18182e}
body.light .data-scope-box{background:#f8f8fc;border-color:#deddf0}
body.light .scope-col li{color:#505068}
body.light .practice-card{background:#f7f7fc;border-color:#e4e4f2}
body.light .practice-card h4{color:#18182e}
body.light .practice-card p{color:#606078}

body.light .data-modal-card{background:#fff;border-color:#deddf0;box-shadow:0 24px 60px rgba(0,0,0,.25)}
body.light .modal-card-title{color:#18182e}
body.light .modal-card-desc{color:#606078}
body.light .modal-checklist li{color:#404058}
body.light .modal-warning-note{background:rgba(2,132,199,.07);border-color:rgba(2,132,199,.22);color:#404058}
body.light .modal-warning-note i{color:#0284c7}
body.light .modal-actions-row .btn-secondary{background:#f0f0fa;color:#30304a;border-color:#d5d5e8}
body.light .modal-actions-row .btn-secondary:hover{background:#e4e4f2;color:#18182e}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
───────────────────────────────────────────────────────────── */
@media(max-width:1023px){
  .terms-layout{grid-template-columns:1fr;gap:24px}
  .terms-toc-desktop{display:none}
  .terms-toc-mobile{display:block}
  .privacy-pillars-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .live-storage-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
  .architecture-steps{grid-template-columns:1fr}
}

@media(max-width:768px){
  .about-principles{grid-template-columns:1fr}
  .workflow-list{grid-template-columns:1fr;gap:0}
  .terms-summary-card{flex-direction:column;align-items:flex-start}
  .summary-card-actions{width:100%}
  .summary-card-actions .btn{flex:1;justify-content:center}
  .external-services-grid{grid-template-columns:1fr}
  .data-scope-box{grid-template-columns:1fr}
  .best-practices-grid{grid-template-columns:1fr}
}

@media(max-width:560px){
  .editorial-page,.terms-page,.privacy-page{width:92%;padding:36px 0 56px}
  .privacy-pillars-grid{grid-template-columns:1fr}
  .live-storage-dashboard{grid-template-columns:1fr}
  .privacy-content-card{padding:22px 18px}
  .legal-section{padding:20px 18px}
  .legal-section-header{gap:10px}
  .legal-number{min-width:28px;height:28px;font-size:.7rem}
  .legal-section h2{font-size:1rem}
  .manage-actions-row{flex-direction:column;align-items:stretch}
  .btn-clear-data{width:100%;justify-content:center}
  .modal-actions-row{flex-direction:column-reverse}
  .modal-actions-row .btn{width:100%;justify-content:center}
}
