/* --- System Design Tokens --- */
:root {
    --bg-black: #0B0B0B;
    --bg-dark-grey: #121212;
    --bg-light-grey: #F9F9F9;
    --text-white: #FFFFFF;
    --text-muted: #8E8E93;
    --text-dark: #1C1C1E;
    --brand-orange: #E75600;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-app: 'Lexend Deca', sans-serif;
}

/* --- Base Clean Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* --- Premium Page Wrapper Framework --- */
.policy-wrapper {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 120px;
    background-image: radial-gradient(circle at 50% 15%, rgba(231, 86, 0, 0.05) 0%, transparent 50%);
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Branding Asset Alignment Engine --- */
.brand-logo-container {
    margin-bottom: 32px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px; /* Perfect modern editorial horizontal distance */
}

.policy-logo,
.policy-wordmark {
    height: 48px; /* Lock both assets to identical matching desktop values */
    width: auto;
    object-fit: contain;
}

/* --- Utility Typography & Components --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    text-align: left;
}

h3 {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-top: 24px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

p {
    font-family: var(--font-app);   
    font-size: 0.9rem;
    color: var(--text-white);
    font-weight: 400;             /* Keep sharp rendering on OLED screens */
    letter-spacing: -0.01em;       /* Premium layout grouping */
    line-height: 1.5;             
    margin-bottom: 16px;
    text-align: left;
}

.preamble {
    margin-bottom: 48px;
    border-left: 3px solid var(--brand-orange);
    padding-left: 20px;
}

.preamble p {
    font-size: 0.9rem;
    color: var(--text-white);
    opacity: 0.85;
}

/* --- Collapsible Accordion Core Styling --- */
details {
    background: var(--bg-dark-grey);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

details:hover {
    border-color: rgba(231, 86, 0, 0.3);
}

details[open] {
    border-color: rgba(231, 86, 0, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

summary {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-muted);
    padding: 24px 32px;
    cursor: pointer;
    list-style: none; /* Hide default browser marker */
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.3s ease;
}

summary::-webkit-details-marker {
    display: none; /* Hide webkit default marker */
}

summary:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Pure CSS Arrow Indicator Engine */
summary::after {
    content: '▼';
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem; /* Balanced visually with heavy title weights */
    color: var(--brand-orange);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

details[open] summary::after {
    content: '▲';
}

.details-content {
    padding: 8px 32px 32px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.1);
}

/* --- Lists & Embedded Tables Structure --- */
ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

li {
    font-family: var(--font-app);
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

li::marker {
    color: var(--brand-orange);
}

strong {
    color: var(--text-white);
    font-weight: 500;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 12px 0;
    background: rgba(11, 11, 11, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-family: var(--font-app);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-orange);
    background: rgba(255, 255, 255, 0.02);
}

td {
    font-family: var(--font-app);
    font-size: 0.95rem;
    color: var(--text-white);
    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

/* --- Structural Responsiveness Adaptations --- */
@media (max-width: 768px) {
    .policy-wrapper {
        padding-top: 60px;
    }

    .container {
        padding: 0 24px;
    }

    .brand-logo-container {
        margin-bottom: 24px;
        gap: 10px;
    }

    .policy-logo,
    .policy-wordmark {
        height: 38px; /* Scales down exactly matching on mobile viewpoints */
    }

    h1 {
        font-size: 2.6rem !important;
        line-height: 1.2 !important;
    }

    summary {
        font-size: 1.4rem;
        padding: 20px 24px;
    }

    summary::after {
        font-size: 0.8rem;
    }

    .details-content {
        padding: 4px 24px 24px 24px;
    }

    table, thead, tbody, th, tr, td {
        display: block;
        width: 100%;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border-bottom: 1px solid var(--border-color);
        padding: 12px 0;
    }

    td {
        border: none;
        padding: 8px 12px;
        text-align: right;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        font-family: var(--font-app);
        font-weight: 500;
        color: var(--brand-orange);
        font-size: 0.85rem;
        text-transform: uppercase;
    }
}

/* --- REPLACE YOUR OLD @media TABLE STYLES WITH THIS --- */
.policy-table {
    border: none;
    background: transparent;
}

.policy-table thead {
    display: none; /* Safely hides standard table column headers */
}

.policy-table tbody, 
.policy-table tr {
    display: block;
    width: 100%;
}

.policy-table tr {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 8px 0;
}

.policy-table td {
    display: grid;
    grid-template-columns: 1fr; /* Forces a single clean vertical track per block */
    gap: 4px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.policy-table td:last-child {
    border-bottom: none; /* Removes trace lines on row boundaries */
}

/* Injects the column label on top of the text to prevent squeezing collisions */
.policy-table td::before {
    content: attr(data-label);
    font-family: var(--font-app);
    font-weight: 500;
    color: var(--brand-orange);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 2px;
}