/* ============================================================
   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;
}

/* ─── Support Page ─── */
.support-page {
    flex: 1;
    padding-top: 80px;
}

.support-hero {
    padding: 60px 24px 48px;
    text-align: center;
}

.support-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.support-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.support-subtitle {
    color: #888;
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 540px;
    margin: 0 auto;
}

/* FAQ */
.faq-section {
    padding: 0 24px 80px;
}

.faq-section .container {
    max-width: 720px;
}

.faq-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: #f0f0f0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    gap: 16px;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #fff;
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #888;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s;
}

.faq-icon-v {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    transform-origin: center;
}

.faq-item.open .faq-icon-v {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-item.open .faq-icon {
    stroke: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.faq-answer-inner p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner ol {
    list-style: none;
    counter-reset: faq-step;
    padding-left: 0;
    margin-bottom: 12px;
}

.faq-answer-inner ol li {
    counter-increment: faq-step;
    position: relative;
    padding-left: 28px;
    color: #999;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.faq-answer-inner ol li::before {
    content: counter(faq-step) '.';
    position: absolute;
    left: 0;
    color: #666;
    font-weight: 600;
}

.faq-answer-inner a {
    color: #ccc;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.faq-answer-inner a:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.faq-answer-inner strong {
    color: #ccc;
    font-weight: 600;
}

/* Support Channels */
.support-channels-section {
    padding: 0 24px 80px;
}

.channels-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    text-align: center;
}

.support-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.channel-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.channel-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.channel-card:hover::before {
    opacity: 1;
}

.channel-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    margin: 0 auto 20px;
    transition: background 0.3s;
}

.channel-card:hover .channel-icon {
    background: rgba(255, 255, 255, 0.1);
}

.channel-icon svg {
    width: 26px;
    height: 26px;
    fill: #ccc;
}

.channel-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.channel-card p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.channel-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ccc;
    letter-spacing: 0.03em;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-wrap: break-word;
    word-break: break-all;
}

.channel-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

/* Support Hours */
.support-hours-section {
    padding: 0 24px 80px;
}

.support-hours-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    margin: 0 auto;
}

.hours-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    flex-shrink: 0;
}

.hours-icon svg {
    width: 24px;
    height: 24px;
    fill: #ccc;
}

.hours-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.hours-time {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0f0f0;
    letter-spacing: -0.01em;
}

.hours-note {
    color: #666;
    font-size: 0.82rem;
    margin-top: 4px;
    line-height: 1.5;
}

/* ─── 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: 10px;
    flex-wrap: wrap;
}

.footer-social .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    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: 768px) {
    .support-channels {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .support-hours-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 5rem;
    }

    .btn {
        width: 100%;
        max-width: 260px;
    }

    .legal-page h1 {
        font-size: 1.6rem;
    }

    .faq-question {
        font-size: 0.88rem;
        padding: 16px 20px;
    }

    .faq-answer-inner {
        padding: 0 20px 20px;
        padding-top: 16px;
    }
}