/* Shared styles for Privacy Policy, Terms, and Accessibility pages (Enterprise Dark Theme) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Align variables with main site theme in index.html */
:root {
    --primary-bg: #1F1F1F;      /* Charcoal */
    --secondary-bg: #2A2A2A;    /* Card/section */
    --accent-gold: #D4AF37;     /* Gold */
    --accent-silver: #BFC3C7;   /* Silver */
    --text-primary: #F2F2F2;    /* Primary text */
    --text-secondary: #A0A0A0;  /* Secondary text */
    --white: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'IBM Plex Sans', 'Source Sans 3', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    background-color: var(--primary-bg);
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--accent-silver);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav a.logo {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.2px;
    transition: opacity 0.2s ease;
}

header nav a.logo:hover,
header nav a.logo:focus {
    opacity: 0.85;
    outline: none;
}

/* Brand logo in legal page headers */
.logo-img {
    height: 32px;
    width: auto;
    vertical-align: middle;
    margin-right: 12px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
    display: inline-block;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-container {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 3rem;
    background: var(--secondary-bg);
    border: 1px solid var(--accent-silver);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    border-bottom: 4px solid var(--accent-gold);
    padding-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    letter-spacing: 0.3px;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
    letter-spacing: -0.25px;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    margin-top: 1.75rem;
    letter-spacing: -0.2px;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

a {
    color: var(--accent-gold);
    text-decoration: underline;
    transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

a:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

strong {
    color: var(--text-primary);
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: transparent;
}

table th {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-gold);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.2px;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(191,195,199,0.5);
}

table tr:hover {
    background-color: rgba(255,255,255,0.03);
}

code {
    background-color: var(--secondary-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid var(--accent-silver);
}

footer {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 2px solid var(--accent-silver);
}

footer a {
    color: var(--accent-gold);
    text-decoration: underline;
}

footer a:hover {
    opacity: 0.85;
}

/* Responsive Design */
@media (max-width: 768px) {
    .privacy-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.05rem;
    }

    ul, ol {
        margin-left: 1.25rem;
    }

    table {
        font-size: 0.9rem;
    }

    table th, table td {
        padding: 0.6rem;
    }
}

/* Print Styles */
@media print {
    header, footer {
        display: none;
    }

    .privacy-container {
        box-shadow: none;
        margin: 0;
        padding: 0;
        border: none;
        background: #ffffff;
        color: #000000;
    }

    a {
        text-decoration: none;
        color: #000000;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
        color: #444444;
    }
}