/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header-logo img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-nav a:hover,
.header-nav a.active {
    color: #1a1a2e;
    background: rgba(0, 0, 0, 0.04);
}

.header-nav a.active {
    font-weight: 600;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a2e;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    padding: 140px 0 60px;
    background: #f0f4ff;
    text-align: center;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.page-hero .meta {
    font-size: 0.95rem;
    color: #888;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================== LEGAL CONTENT ==================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px 100px;
}

.legal-content .intro-block {
    background: #f0f4ff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 32px;
    border-left: 4px solid #2563eb;
}

.legal-content .intro-block p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 44px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eef8;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 20px 0 8px;
}

.legal-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content strong {
    color: #1a1a2e;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.legal-content ul li {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    padding: 6px 0 6px 24px;
    position: relative;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    opacity: 0.6;
}

.legal-content .caps-notice {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    background: #fafafa;
    border-radius: 8px;
    padding: 16px 20px;
    border: 1px solid #eee;
    margin-bottom: 16px;
}

.legal-content .warning-box {
    background: #fff8f0;
    border: 1px solid #ffd6a5;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.legal-content .warning-box p {
    font-size: 0.95rem;
    color: #8b6914;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Plan boxes (pricing) */
.plan-box {
    background: #f0f4ff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    border-left: 4px solid #2563eb;
}

.plan-box p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
}

.plan-box p:last-child {
    margin-bottom: 0;
}

.plan-box strong {
    color: #1a1a2e;
}

.plan-box.featured {
    background: #e8f0ff;
}

/* ==================== CONTACT BOX ==================== */
.contact-box {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 32px;
    margin-top: 48px;
    color: #fff;
}

.contact-box h2 {
    color: #93b4ff;
    border: none;
    margin-top: 0;
    padding-bottom: 0;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.contact-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.contact-box a {
    color: #93b4ff;
}

.contact-box a:hover {
    color: #fff;
}

.contact-box ul li {
    color: rgba(255, 255, 255, 0.8);
}

.contact-box ul li::before {
    background: #93b4ff;
    opacity: 0.8;
}

.contact-box .tagline {
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 60px 0 40px;
    background: #f8f9ff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-company h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
}

.footer-address h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.footer-address p {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}

.footer-contact {
    text-align: right;
}

.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.footer-contact a {
    font-size: 0.85rem;
    color: #888;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #2563eb;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        z-index: 9999;
    }

    .header-nav.open {
        display: flex;
    }

    .header-nav a {
        font-size: 1.15rem;
        font-weight: 500;
        padding: 14px 32px;
        color: #1a1a2e;
        border-radius: 12px;
        width: 80%;
        text-align: center;
    }

    .header-nav a:hover,
    .header-nav a.active {
        background: #f0f4ff;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 10000;
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .page-hero {
        padding: 110px 0 40px;
    }

    .page-hero h1 {
        font-size: 2.4rem;
    }

    .legal-content {
        padding: 40px 20px 80px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }

    .header-inner {
        padding: 0 24px;
    }

    .container {
        padding: 0 24px;
    }
}