/* ==========================================================
   Mobyfinder — Global Stylesheet
   Accent: #344D85 | Light: #EEF2FA | Dark: #2A3D6A
   ========================================================== */

:root {
    --accent:       #344D85;
    --accent-light: #EEF2FA;
    --accent-mid:   #4A6BB5;
    --accent-dark:  #2A3D6A;
    --accent-deep:  #192A4B;
}

/* ----------------------------------------------------------
   Base
---------------------------------------------------------- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #111827;
}

/* ----------------------------------------------------------
   Navigation
---------------------------------------------------------- */
.glass-nav {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid #E5E7EB;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
    background: white;
    color: #374151;
    text-decoration: none;
}
.lang-btn:hover { background: #F9FAFB; }

/* ----------------------------------------------------------
   Cards & Backgrounds (index)
---------------------------------------------------------- */
.card-bg { background-color: #F8FAFC; }
.gradient-bg-3 { background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%); }

/* ----------------------------------------------------------
   Scrollbar utilities
---------------------------------------------------------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ----------------------------------------------------------
   Legal pages — TOC Sidebar
---------------------------------------------------------- */
#toc-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 272px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    border-right: 1px solid #F1F5F9;
    background: #FAFBFC;
    padding: 28px 16px 40px;
    z-index: 40;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}
#toc-sidebar::-webkit-scrollbar { width: 4px; }
#toc-sidebar::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }

.toc-link {
    display: block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #64748B;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}
.toc-link:hover { color: #1E293B; background: #F1F5F9; }
.toc-link.active {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-light);
    border-left-color: var(--accent);
}
.toc-sub { padding-left: 16px; }
.toc-sub .toc-link { font-size: 0.73rem; padding: 4px 10px; }
.toc-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94A3B8;
    padding: 0 10px;
    margin: 16px 0 6px;
}

/* ----------------------------------------------------------
   Legal pages — Content layout
---------------------------------------------------------- */
#doc-content { margin-left: 272px; }

@media (max-width: 768px) {
    #toc-sidebar  { display: none; }
    #doc-content  { margin-left: 0; }
    #toc-fab      { display: flex; }
}
@media (min-width: 769px) {
    #toc-fab         { display: none; }
    #toc-bottomsheet { display: none !important; }
}

/* ----------------------------------------------------------
   Legal pages — FAB & Bottom sheet (mobile TOC)
---------------------------------------------------------- */
#toc-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    align-items: center;
    gap: 8px;
    background: #1E293B;
    color: white;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
#toc-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 60;
    backdrop-filter: blur(2px);
}
#toc-bottomsheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-height: 75vh;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 70;
    overflow-y: auto;
    padding: 0 20px 40px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    scrollbar-width: thin;
}
#toc-bottomsheet.open { transform: translateY(0); }
.bs-handle {
    width: 36px; height: 4px;
    background: #E2E8F0;
    border-radius: 9999px;
    margin: 12px auto 20px;
}

/* ----------------------------------------------------------
   Legal pages — Prose typography
---------------------------------------------------------- */
.prose h1 { font-size: 1.6rem; font-weight: 800; color: #0F172A; margin: 2.5rem 0 1rem; padding-top: 1rem; }
.prose h2 { font-size: 1.1rem; font-weight: 700; color: #1E293B; margin: 1.8rem 0 0.75rem; }
.prose p  { color: #374151; line-height: 1.75; margin-bottom: 1rem; font-size: 0.95rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { color: #374151; line-height: 1.75; font-size: 0.95rem; margin-bottom: 0.25rem; }
.prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ol li { color: #374151; line-height: 1.75; font-size: 0.95rem; margin-bottom: 0.4rem; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { color: var(--accent-dark); }
.prose strong { font-weight: 600; color: #1E293B; }
.prose em { font-style: italic; }
.prose .section-divider { border: none; border-top: 1px solid #F1F5F9; margin: 2rem 0; }

.data-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9rem; }
.data-table th { background: #F8FAFC; font-weight: 600; color: #1E293B; padding: 10px 14px; text-align: left; border: 1px solid #E2E8F0; }
.data-table td { padding: 10px 14px; border: 1px solid #E2E8F0; color: #374151; vertical-align: top; }

.contact-block { background: #F8FAFC; border-radius: 12px; padding: 16px 20px; margin: 1rem 0; border: 1px solid #E2E8F0; }
.contact-block p { margin-bottom: 0.25rem; font-size: 0.9rem; }

.chapter-tag {
    display: inline-block;
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 8px; border-radius: 4px; margin-bottom: 6px;
}

/* ----------------------------------------------------------
   Terms & Conditions — Roman numeral steps
---------------------------------------------------------- */
.steps-list { counter-reset: steps; padding-left: 0; list-style: none; }
.steps-list li {
    counter-increment: steps;
    padding: 10px 0 10px 2.5rem;
    position: relative;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.95rem; color: #374151; line-height: 1.7;
}
.steps-list li::before {
    content: counter(steps, upper-roman);
    position: absolute; left: 0;
    font-weight: 700;
    color: var(--accent);
}
