/* ==========================================================================
   Clean Privacy Policy Stylesheet (Day / Light Mode Only)
   Clean, authoritative legal documentation design.
   ========================================================================== */

:root {
    /* Pure Light Mode Color Tokens */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --border-light: #e2e8f0;

    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-link: var(--app-primary);

    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Menlo, Monaco, Consolas, monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;

    --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 8px 24px -4px rgba(15, 23, 42, 0.04);
    --container-max: 1160px;
    --header-height: 64px;
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Reading Progress Bar */
.reading-progress-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
}

.reading-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--app-primary);
    transition: width 0.1s ease-out;
}

/* Top Header */
.top-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-height);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.app-icon-shield {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--app-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon-shield svg {
    width: 18px;
    height: 18px;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-app-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-heading);
    line-height: 1.2;
}

.brand-doc-type {
    font-size: 0.725rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.google-play-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #0f172a;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-pill);
    transition: background-color 0.2s ease;
}

.google-play-pill:hover {
    background: #1e293b;
}

/* Page Layout */
.page-body {
    flex: 1;
    padding: 2.5rem 0 4.5rem 0;
}

.layout-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 960px) {
    .layout-container {
        grid-template-columns: 240px 1fr;
        align-items: start;
    }
}

/* Sidebar Navigation (Minimalist Docs Style) */
.doc-sidebar {
    display: none;
}

@media (min-width: 960px) {
    .doc-sidebar {
        display: block;
    }
}

.sidebar-sticky {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    padding-left: 0.75rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-light);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.75rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: all 0.15s ease;
}

.nav-num {
    font-family: var(--font-mono);
    font-size: 0.725rem;
    color: #94a3b8;
}

.nav-item:hover {
    color: var(--text-heading);
}

.nav-item.active {
    color: var(--app-primary);
    border-left-color: var(--app-primary);
    font-weight: 600;
    background: linear-gradient(90deg, rgba(241, 245, 249, 0.8) 0%, transparent 100%);
}

.nav-item.active .nav-num {
    color: var(--app-primary);
}

/* Main Article Document */
.doc-main {
    min-width: 0;
}

.doc-article {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .doc-article {
        padding: 3.5rem;
    }
}

/* Hero Section: Clean & Minimal */
.doc-hero {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Key Principles Clean List (Unboxed) */
.highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0 2rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.highlights-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.98rem;
    color: var(--text-body);
}

.highlights-list li::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--app-primary);
}

.highlights-list li strong {
    color: var(--text-heading);
}

/* Policy Sections */
.article-section {
    padding-top: 2rem;
    margin-bottom: 2.5rem;
    border-top: 1px solid var(--border-light);
}

.section-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.section-index {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--app-primary);
    background: var(--bg-subtle);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.section-title-wrap h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.015em;
}

.article-section p {
    color: var(--text-body);
    margin-bottom: 1.25rem;
}

.article-section strong {
    color: var(--text-heading);
}

.article-section a {
    color: var(--app-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.75rem;
}

/* Bullet Lists */
.bullet-list {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-body);
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.bullet-list li code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--bg-subtle);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    color: var(--app-primary);
    border: 1px solid var(--border-light);
}

/* Callouts */
.callout {
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.5rem;
}

.callout-warning {
    background: #fffbeb;
    border-left: 4px solid #d97706;
    border-top: 1px solid #fde68a;
    border-right: 1px solid #fde68a;
    border-bottom: 1px solid #fde68a;
}

.callout-warning p {
    font-size: 0.925rem;
    color: #78350f;
    margin-bottom: 0;
}

.callout-warning strong {
    color: #92400e;
}

/* Contact Info Block */
.contact-info-block {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1.25rem;
    font-size: 0.925rem;
}

.contact-info-block p {
    margin-bottom: 0.35rem;
}

.contact-info-block p:last-child {
    margin-bottom: 0;
}

.contact-info-block code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--app-primary);
}

/* Clean Footer */
.doc-footer {
    border-top: 1px solid var(--border-light);
    background: #ffffff;
    padding: 2rem 0;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.825rem;
    color: var(--text-muted);
}

@media (min-width: 640px) {
    .footer-meta {
        flex-direction: row;
        justify-content: space-between;
    }
}

.app-identifier code {
    font-family: var(--font-mono);
    color: var(--text-heading);
}
