/* ==========================================================================
   AbsForge Privacy Policy - Stylesheet
   Theme: Obsidian Dark + Crimson Red Accent (#080909, #141414, #FF3030)
   Mobile-First Responsive Design
   ========================================================================== */

/* --- CSS Variables & Design System --- */
:root {
    --bg-dark: #080909;
    --bg-card: #141414;
    --bg-surface: #1C1C1C;
    --bg-surface-hover: #242424;
    --border-color: #2A2A2A;
    --border-highlight: #3F3F46;
    
    --accent-red: #FF3030;
    --accent-red-hover: #E02424;
    --accent-red-muted: #D92626;
    --accent-red-glow: rgba(255, 48, 48, 0.15);
    --accent-red-bg: rgba(255, 48, 48, 0.08);
    
    --text-primary: #F5F5F7;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    
    --code-bg: #1F1818;
    --code-color: #FF8585;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 900px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(255, 48, 48, 0.2);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    line-height: 1.65;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Typography Defaults */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus-visible {
    color: var(--text-primary);
    text-decoration: underline;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    background-color: var(--code-bg);
    color: var(--code-color);
    padding: 0.2em 0.45em;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 48, 48, 0.2);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.5rem;
}

strong {
    color: var(--text-primary);
}

/* --- Top Navigation Bar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background-color: rgba(8, 9, 9, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.brand-logo:hover {
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--accent-red-bg);
    border: 1px solid rgba(255, 48, 48, 0.3);
    border-radius: var(--radius-sm);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.825rem;
    color: var(--text-secondary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 8px #22C55E;
}

.package-name {
    font-size: 0.8em;
}

/* --- Hero Section --- */
.hero-section {
    padding: 3.5rem 1.25rem 2.5rem 1.25rem;
    background: radial-gradient(circle at 50% 0%, rgba(255, 48, 48, 0.12) 0%, rgba(8, 9, 9, 0) 70%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.header-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-red);
    background-color: var(--accent-red-bg);
    border: 1px solid rgba(255, 48, 48, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #D4D4D8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 1.5rem auto;
}

.meta-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.meta-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.meta-pill strong {
    color: var(--text-primary);
}

/* --- Page Layout & Containers --- */
.page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem 1.25rem;
}

/* --- Highlights Grid Cards --- */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.highlight-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), transparent);
    opacity: 0.7;
}

.highlight-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 48, 48, 0.4);
    box-shadow: var(--shadow-glow);
}

.card-icon.red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--accent-red-bg);
    border-radius: var(--radius-sm);
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.highlight-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- Table of Contents --- */
.table-of-contents {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    margin-bottom: 3rem;
}

.table-of-contents h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents ol {
    margin-bottom: 0;
    padding-left: 1.2rem;
    column-count: 1;
}

@media (min-width: 768px) {
    .table-of-contents ol {
        column-count: 2;
        column-gap: 2rem;
    }
}

.table-of-contents li {
    font-size: 0.925rem;
    margin-bottom: 0.4rem;
}

.table-of-contents a {
    color: var(--text-secondary);
}

.table-of-contents a:hover {
    color: var(--accent-red);
}

/* --- Main Policy Sections --- */
.policy-body {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.policy-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
    transition: var(--transition);
}

.policy-section:hover {
    border-color: var(--border-highlight);
}

.policy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.policy-section h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-primary);
}

/* --- Callout Components --- */
.callout {
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-red);
    background-color: var(--bg-surface);
}

.callout-info {
    border-left-color: #3B82F6;
    background-color: rgba(59, 130, 246, 0.08);
}

.callout-warning {
    border-left-color: var(--accent-red);
    background-color: var(--accent-red-bg);
}

.callout strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.callout p {
    font-size: 0.925rem;
    margin-bottom: 0;
}

/* --- Data Table Styling --- */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.data-table th {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* --- Permission Cards --- */
.permission-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.permission-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.perm-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-red);
    background-color: var(--accent-red-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 48, 48, 0.3);
}

.permission-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Service Box --- */
.service-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-top: 1rem;
}

.service-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.service-box p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.external-link {
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- Contact Section Card --- */
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.25rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--accent-red-bg);
    border: 1px solid rgba(255, 48, 48, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-red);
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-email {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-red);
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- Footer --- */
.footer {
    background-color: #040505;
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.25rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.footer-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-red);
}

/* --- Print Styles --- */
@media print {
    .navbar, .meta-pills, .table-of-contents, .footer {
        display: none !important;
    }
    body {
        background-color: #FFFFFF !important;
        color: #000000 !important;
    }
    .policy-section, .highlight-card, .callout, .permission-card {
        background-color: #FFFFFF !important;
        border: 1px solid #CCCCCC !important;
        color: #000000 !important;
        box-shadow: none !important;
    }
    p, li, td, th {
        color: #000000 !important;
    }
}
