/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Forces long words to wrap instead of overlapping */
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

:root {
    --blue: #3B82F6;
    --blue-bright: #60A5FA;
    --blue-dark: #1D4ED8;
    --dark: #070B14;
    --dark-2: #0D1526;
    --card: #0F1A2E;
    --card-border: rgba(59,130,246,0.15);
    --text: #E8EEFF;
    --text-muted: #8899BB;
    --white: #ffffff;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'DM Sans', 'Inter', sans-serif;
    line-height: 1.6 !important;
    color: var(--text);
    background: var(--dark);
    min-height: 100vh;
    position: relative;
}

/* Global Headings Fix */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3 !important;
}

p, ul li, span, a, div {
    line-height: 1.6 !important;
}

/* Header */
header {
    background: rgba(7,11,20,0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59,130,246,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 34px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: var(--white);
}

/* Policy Pages Container */
.policy-content {
    padding: 120px 5% 4rem;
    min-height: calc(100vh - 100px);
}

.policy-content .container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.policy-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 800;
}

.policy-content .last-updated {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.policy-content section {
    margin-bottom: 2.5rem;
}

.policy-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    color: var(--blue-bright);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

.policy-content h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin: 1.5rem 0 0.8rem;
}

.policy-content p, .policy-content ul {
    margin-bottom: 1rem;
    color: var(--text);
}

.policy-content ul {
    margin-left: 1.5rem;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
}

.policy-content a {
    color: var(--blue-bright);
    text-decoration: none;
    transition: color 0.2s ease;
}

.policy-content a:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--dark-2);
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 2.5rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .logo {
    justify-content: center;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

footer ul li a:hover {
    color: var(--white);
}

/* Mobile Overrides - Prevents Overlap */
@media screen and (max-width: 768px) {
    nav ul { display: none; }
    .policy-content { padding: 100px 1rem 2rem; }
    .policy-content .container { padding: 1.5rem; }
    h1, .policy-content h1 { font-size: 2.2rem !important; letter-spacing: normal !important; }
    h2, .policy-content h2 { font-size: 1.8rem !important; }
    h3, .policy-content h3 { font-size: 1.4rem !important; }
    p, ul li, a { font-size: 1rem !important; }
    footer ul { flex-direction: column; gap: 1rem; }
    section, div, .container { height: auto !important; min-height: auto !important; }
}