/* ============================================================
 *  Honlor — Global Design System
 *  Extracted from the original inline styles.
 *  Shared across all pages via _head.php partial.
 * ============================================================ */

/* --- Design Tokens --- */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dim: rgba(99, 102, 241, 0.15);
    --secondary: #8b5cf6;
    --accent: #3b82f6;
    --bg: #0f172a;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --surface-active: rgba(255, 255, 255, 0.12);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-strong: rgba(255, 255, 255, 0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --danger: #ef4444;
    --danger-dim: rgba(239, 68, 68, 0.15);
    --success: #22c55e;
    --success-dim: rgba(34, 197, 94, 0.15);
    --warning: #f59e0b;
    --warning-dim: rgba(245, 158, 11, 0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 32px;
}

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-light);
}

/* --- Background Mesh Gradient --- */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    opacity: 0.6;
}

/* --- Header / Navigation --- */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo-container:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.logo-image {
    height: 40px;
    filter: brightness(1.2);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover {
    color: var(--text);
}

nav a:hover::after {
    width: 100%;
}

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

nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
}

/* --- Footer --- */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- Shared Page Components --- */
.content-wrapper {
    padding: 8rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.policy-card {
    background: var(--surface);
    max-width: 900px;
    width: 100%;
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.policy-card h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.policy-card h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.policy-card p,
.policy-card li {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.policy-card ul {
    padding-left: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.policy-card li {
    margin-bottom: 0.75rem;
}

.effective-date {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* --- Feature Icons (used in community-guidelines, safety-tips) --- */
.feature-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    color: var(--primary-light);
    flex-shrink: 0;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

/* --- Animations --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Responsive: Mobile Navigation --- */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: var(--transition);
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }

    nav.show-menu {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .content-wrapper {
        padding-top: 6rem;
    }

    .policy-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .policy-card h1 {
        font-size: 2.25rem;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .policy-card {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }
}
