/* ==========================================================================
   Enz Technologies (Pvt) Ltd - Legal & Policy Pages Stylesheet
   ========================================================================== */

:root {
    --bg-primary: #090d16;
    --bg-secondary: #111827;
    --bg-card: #161f33;
    --border-color: #243049;
    --accent-primary: #0ea5e9;
    --accent-hover: #38bdf8;
    --accent-glow: rgba(14, 165, 233, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
.site-header {
    background: rgba(9, 13, 22, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Pure CSS Brand Mark */
.brand-logo {
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    border-left: 3px solid var(--accent-primary);
    padding-left: 0.65rem;
}

.brand-logo .brand-main {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.14em;
    color: var(--text-primary);
}

.brand-logo .brand-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--accent-primary);
    margin-top: 0.2rem;
}

.policy-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.policy-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.policy-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.policy-nav a.active {
    color: var(--accent-hover);
    background: var(--accent-glow);
    border-color: rgba(14, 165, 233, 0.35);
}

/* Hero Banner */
.policy-hero {
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 50%),
                linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 3.5rem 1.5rem 3rem;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-hover);
    background: var(--accent-glow);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.policy-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.policy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.policy-meta span strong {
    color: var(--text-secondary);
}

/* Main Content Grid */
.layout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sticky Sidebar TOC */
.toc-sidebar {
    position: sticky;
    top: 5.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.toc-list a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.toc-list a:hover {
    color: var(--accent-hover);
    background: rgba(255, 255, 255, 0.03);
}

/* Policy Document Card */
.policy-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2.5rem;
}

.lead-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.policy-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 6rem;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.policy-section h2 .sec-num {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.policy-section p {
    margin-bottom: 1rem;
}

.policy-section ul, .policy-section ol {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.policy-section li strong {
    color: var(--text-primary);
}

/* Info Callout Box */
.contact-callout {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.contact-callout h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-callout p {
    margin-bottom: 0.35rem;
    font-size: 0.925rem;
}

.contact-callout a {
    color: var(--accent-hover);
    text-decoration: none;
}

.contact-callout a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-hover);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .toc-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .policy-content {
        padding: 1.5rem 1.25rem;
    }

    .policy-hero {
        padding: 2.5rem 1.25rem 2rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: #ffffff;
        color: #111827;
    }
    .site-header, .toc-sidebar, .site-footer {
        display: none;
    }
    .layout-wrapper {
        display: block;
        padding: 0;
    }
    .policy-content {
        border: none;
        background: #ffffff;
        padding: 0;
    }
    .policy-section h2, .policy-section li strong, .lead-text {
        color: #000000;
    }
}