/* ============================================
   COLLOON LEGAL PAGES — LEGAL.CSS
   Shared styles for Privacy Policy & Terms
   ============================================ */

/* === Self-Hosted Fonts === */
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DynaPuff';
    src: url('../fonts/DynaPuff-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DynaPuff';
    src: url('../fonts/DynaPuff-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-space: #05050A;
    --bg-panel: rgba(20, 20, 35, 0.4);
    --bg-panel-border: rgba(255, 255, 255, 0.08);
    --text-main: #F4F4F6;
    --text-muted: #8E8F9E;
    --color-purple: #A78BFA;
    --font-ui: 'Nunito', sans-serif;
    --font-logo: 'DynaPuff', cursive;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-space);
    color: var(--text-main);
    font-family: var(--font-ui);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-purple);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* === Page Layout === */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header === */
.legal-header {
    padding: 32px 0;
    border-bottom: 1px solid var(--bg-panel-border);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-brand {
    font-family: var(--font-logo);
    font-size: 28px;
    font-weight: 700;
    color: #FFF;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.legal-brand:hover {
    text-decoration: none;
    opacity: 0.9;
}

.legal-nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 600;
}

.legal-nav a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.legal-nav a:hover {
    color: #FFF;
    text-decoration: none;
}

.legal-nav a.active {
    color: var(--color-purple);
}

/* === Content === */
.legal-content {
    padding-bottom: 80px;
}

.legal-content h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.legal-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin-top: 48px;
    margin-bottom: 16px;
    color: #FFF;
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: rgba(244, 244, 246, 0.9);
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 15px;
}

.legal-content ul,
.legal-content ol {
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-left: 24px;
    font-size: 15px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content strong {
    color: var(--text-main);
    font-weight: 700;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 24px;
    font-size: 14px;
}

.legal-content th,
.legal-content td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-content th {
    color: var(--text-main);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.03);
}

.legal-content td {
    color: var(--text-muted);
}

/* Highlight box for important info */
.legal-highlight {
    background: rgba(167, 139, 250, 0.08);
    border-left: 3px solid var(--color-purple);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.legal-highlight strong {
    color: var(--color-purple);
}

/* === Footer === */
.legal-footer {
    border-top: 1px solid var(--bg-panel-border);
    padding: 32px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(142, 143, 158, 0.5);
}

/* === Responsive === */
@media (max-width: 640px) {
    .legal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 0;
        margin-bottom: 32px;
    }

    .legal-content h1 {
        font-size: 28px;
    }

    .legal-content h2 {
        font-size: 19px;
        margin-top: 36px;
    }

    .legal-content table {
        font-size: 13px;
    }

    .legal-content th,
    .legal-content td {
        padding: 10px 12px;
    }
}