/* ============================================================
   MENAYARI — Shared Sub-Page Styles (404, Privacy, Terms)
   Grayscale Dark Theme
   ============================================================ */

/* Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #f0f0f0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Header (sub-page) ─── */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.page-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
}

.page-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header .logo img {
    height: 32px;
    width: auto;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-header .logo:hover img {
    transform: scale(1.05);
}

.page-header .logo-text {
    font-size: 1rem;
    font-weight: 700;
}

.page-header .back-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-header .back-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* ─── 404 Page ─── */
.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.error-content {
    max-width: 520px;
}

.error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    opacity: 0.2;
}

.error-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 16px;
}

.error-description {
    color: #888;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    text-transform: uppercase;
}

.btn-primary {
    background: #fff;
    color: #0a0a0a;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* ─── Legal / Privacy Page ─── */
.legal-page {
    flex: 1;
    padding: 100px 24px 60px;
}

.legal-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 8px;
    padding-top: 20px;
}

.legal-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: #f0f0f0;
}

.legal-section h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #ccc;
}

.legal-section p,
.legal-section li {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 18px;
}

.legal-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #555;
}

/* ─── Footer (sub-page) ─── */
.page-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 0 0;
    margin-top: auto;
}

.page-footer .container {
    max-width: 1200px;
}

.page-footer a {
    color: #888;
    transition: color 0.2s;
}

.page-footer a:hover {
    color: #fff;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 32px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    height: 36px;
    width: auto;
    border-radius: 50%;
}

.footer-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #f0f0f0;
}

.footer-tagline {
    display: block;
    font-size: 0.78rem;
    color: #666;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.85rem;
    color: #666;
}

.footer-col a:hover {
    color: #fff;
}

.footer-social h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 10px;
}

.footer-social .social-links {
    display: flex;
    gap: 12px;
}

.footer-social .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #888;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social .social-links a:hover {
    background: #fff;
    border-color: #fff;
    color: #0a0a0a;
    transform: translateY(-3px);
}

.footer-social .social-links svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    text-align: center;
    font-size: 0.78rem;
    color: #444;
}

/* ─── Footer responsive ─── */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .footer-links {
        gap: 32px;
    }
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .error-code {
        font-size: 5rem;
    }

    .btn {
        width: 100%;
        max-width: 260px;
    }

    .legal-page h1 {
        font-size: 1.6rem;
    }
}