/*
 * Devicel Pages Stylesheet
 * About, Contact, FAQ, Shipping, Privacy, Terms
 * Version: 1.0.0
 */

/* ========================================
   Legal Page Base
   ======================================== */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-5);
}

.legal-page h1 {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--space-4);
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-10);
}

.legal-page section {
    margin-bottom: var(--space-8);
}

.legal-page section h2 {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--border);
    position: relative;
}

.legal-page section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-gradient);
}

.legal-page section p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.legal-page section ul,
.legal-page section ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.legal-page section li {
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    line-height: var(--leading-relaxed);
}

.legal-page a {
    color: var(--primary);
}

.legal-page a:hover {
    text-decoration: underline;
}

/* ========================================
   FAQ Page
   ======================================== */
.faq-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-5);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.faq-header h1 {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--space-3);
}

.faq-header p {
    font-size: var(--font-size-xl);
    color: var(--text-muted);
}

.faq-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

.faq-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-semibold);
    color: var(--primary);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--border);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    overflow: hidden;
    background: var(--bg-white);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-md);
    font-weight: var(--font-medium);
    text-align: left;
    color: var(--text-primary);
    transition: background var(--transition-base);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    font-size: var(--font-size-2xl);
    color: var(--text-light);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: var(--space-4);
}

.faq-icon.rotate {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-5) var(--space-5);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.faq-answer p {
    margin: 0;
}

.faq-answer a {
    color: var(--primary);
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-cta {
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    margin-top: var(--space-12);
}

.faq-cta h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-2);
}

.faq-cta p {
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

.faq-cta .cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

/* ========================================
   About Page
   ======================================== */
.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-5);
}

.about-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.about-header h1 {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--space-4);
}

.about-header p {
    font-size: var(--font-size-xl);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

.about-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.about-section h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-5);
    color: var(--primary);
}

.about-section p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

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

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.value-card {
    text-align: center;
    padding: var(--space-5);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.value-icon {
    font-size: 40px;
    margin-bottom: var(--space-3);
}

.value-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

.value-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-5);
}

.contact-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.contact-header h1 {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--space-3);
}

.contact-header p {
    font-size: var(--font-size-xl);
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

.contact-form-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.contact-form-wrapper h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-6);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-card-content h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

.contact-card-content p {
    color: var(--text-muted);
    font-size: var(--font-size-base);
    margin: 0;
    line-height: var(--leading-relaxed);
}

.contact-card-content a {
    color: var(--primary);
}

/* Business Hours */
.hours-card {
    background: linear-gradient(135deg, #0a1628, #1a365d);
    color: var(--text-white);
    border: none;
}

.hours-card .contact-card-icon {
    background: rgba(255, 255, 255, 0.1);
}

.hours-card h3 {
    color: var(--text-white);
}

.hours-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Enquiry Form
   ======================================== */
.enquiry-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.enquiry-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

/* ========================================
   Error Pages
   ======================================== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: var(--space-10);
}

.error-code {
    font-size: 120px;
    font-weight: var(--font-bold);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.error-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-3);
}

.error-message {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: var(--space-8);
}

.error-actions {
    display: flex;
    gap: var(--space-4);
}

/* Maintenance Page */
.maintenance-page {
    background: linear-gradient(135deg, #0a1628, #1a365d);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-10);
}

.maintenance-icon {
    font-size: 80px;
    margin-bottom: var(--space-6);
    animation: spin 4s linear infinite;
}

.maintenance-page h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
}

.maintenance-page p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
}

/* ========================================
   Unsubscribe Page
   ======================================== */
.unsubscribe-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: var(--space-10) var(--space-5);
}

.unsubscribe-card {
    max-width: 480px;
    width: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    text-align: center;
}

.unsubscribe-card .icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.error-state .icon {
    background: var(--error-light);
}

.success-state .icon {
    background: var(--success-light);
    color: var(--success);
}

.confirm-state .icon {
    background: #e0f2fe;
}

.unsubscribe-card h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-3);
}

.unsubscribe-card p {
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2);
}

.unsubscribe-card .note {
    font-size: var(--font-size-sm);
    margin-top: var(--space-4);
}

.unsubscribe-card .actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-6);
}

.btn-unsubscribe {
    padding: var(--space-3) var(--space-6);
    background: var(--error);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-semibold);
    cursor: pointer;
}

.btn-unsubscribe:hover {
    background: #dc2626;
}

.btn-cancel,
.btn-home {
    padding: var(--space-3) var(--space-6);
    background: var(--bg-light);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-semibold);
}

.btn-home {
    display: inline-block;
    margin-top: var(--space-6);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .legal-page h1,
    .faq-header h1,
    .about-header h1,
    .contact-header h1 {
        font-size: var(--font-size-4xl);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .enquiry-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .faq-cta .cta-buttons,
    .error-actions {
        flex-direction: column;
    }
    
    .error-code {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-base);
    }
    
    .unsubscribe-card .actions {
        flex-direction: column;
    }
}
