/* ==========================================================
 *  PAGES.CSS — Premium Page Styling for Static Content
 *  (About, DMCA, Contact, Privacy, Terms, How-to)
 *  Fully adapted to the Premium Space-Dark Design System.
 * ========================================================== */

/* ===== LUXURY BREADCRUMB BAR ===== */
.breadcrumb-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px 0;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.breadcrumb-inner a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.breadcrumb-inner a:hover {
    color: var(--text);
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--text-muted);
    font-weight: 700;
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== PAGE BACK NAVIGATION ===== */
.page-nav {
    display: flex;
    align-items: center;
}

.nav-back {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}

.nav-back:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* ===== PAGE CONTENT WRAPPER ===== */
.page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px;
}

.page-article {
    background: var(--content-wrapper-bg);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

/* ===== PAGE TYPOGRAPHY ===== */
.page-title {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.page-title .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 10px;
}

.page-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 99px;
    margin: 20px 0 36px;
}

/* ===== SECTION TITLES & TEXT ===== */
.page-section {
    margin-bottom: 40px;
}

.page-section:last-child {
    margin-bottom: 0;
}

.page-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.page-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 10px;
}

.page-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.page-section code {
    background: rgba(255, 42, 95, 0.08);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Fira Code', 'Consolas', monospace;
    border: 1px solid rgba(255, 42, 95, 0.15);
}

/* ===== ELEGANT BULLET LIST ===== */
.page-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.page-list li {
    position: relative;
    padding: 10px 0 10px 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.page-list li:last-child {
    border-bottom: none;
}

.page-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 12px;
}

/* ===== TEXT LINK INTERACTION ===== */
.page-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--accent);
    transition: all 0.25s ease;
}

.page-link:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

/* ===== CALLOUT ALERT BOX ===== */
.page-alert {
    background: rgba(255, 42, 95, 0.04);
    border: 1px solid rgba(255, 42, 95, 0.12);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.page-alert.warning {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.12);
    border-left-color: #ef4444;
}

.page-alert p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* ===== GLOWING FEATURES GRID ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    background: rgba(255, 42, 95, 0.035);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 42, 95, 0.15);
}

.feature-icon {
    font-size: 34px;
    display: block;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    border: none;
    padding: 0;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* ===== STEP ITEMS TIMELINE ===== */
.steps-list {
    margin: 24px 0;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    border: none;
    padding: 0;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ===== ADVANCED DOWNLOAD TIPS ===== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.tip-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: rgba(255, 42, 95, 0.02);
    border-color: rgba(255, 42, 95, 0.25);
}

.tip-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
}

.tip-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== LUXURY ACCORDION FAQ ===== */
.faq-list {
    margin: 20px 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item:hover {
    border-color: rgba(255, 42, 95, 0.25);
}

.faq-item[open] {
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--accent-glow);
    background: rgba(255, 42, 95, 0.02);
}

.faq-item summary {
    padding: 18px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.25s ease;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: rgba(255, 42, 95, 0.04);
}

.faq-item p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    animation: faqSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faqSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GLOWING CALL TO ACTION BOX ===== */
.page-cta-section {
    text-align: center;
    padding: 36px 24px;
    background: rgba(255, 42, 95, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 42, 95, 0.15);
    margin-top: 30px;
}

.page-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--accent-gradient);
    color: #ffffff !important;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px var(--accent-glow);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.page-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 42, 95, 0.4);
    background: var(--accent-gradient-hover);
}

.page-cta-btn:active {
    transform: translateY(-1px);
}

/* ===== NUMBERED LEGAL LIST ===== */
.numbered-list {
    margin: 20px 0;
}

.numbered-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.numbered-item:last-child {
    border-bottom: none;
}

.number-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--accent-glow);
}

.numbered-item p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ===== CONTACT BOX WIDGET ===== */
.contact-box {
    background: rgba(255, 42, 95, 0.03);
    border: 1px solid rgba(255, 42, 95, 0.12);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    margin: 20px 0;
}

.email-link {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 12px;
    background: rgba(255, 42, 95, 0.06);
    border: 1px solid rgba(255, 42, 95, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 10px 0;
}

.email-link:hover {
    background: var(--accent-gradient);
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.contact-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== CONTACT CARDS BLOCK ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent);
    background: rgba(255, 42, 95, 0.03);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    border: none;
    padding: 0;
}

.contact-card .email-link {
    font-size: 0.8rem;
    padding: 8px 16px;
    display: block;
    margin: 0 0 12px;
}

.contact-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ===== GLASSMORPHIC CONTACT FORM ===== */
.contact-form {
    margin: 24px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff2a5f' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ===== RESPONSIVE STATIC PAGES ===== */
@media (max-width: 768px) {
    .page-article {
        padding: 32px 24px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 12px;
    }

    .page-article {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .page-section h2 {
        font-size: 1.2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        gap: 12px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .breadcrumb-bar {
        padding: 8px 12px 0;
    }

    .breadcrumb-inner {
        padding: 10px 14px;
        font-size: 12px;
    }

    .nav-back {
        font-size: 12px;
        padding: 5px 12px;
    }
}
