* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

a {
    color: #007AFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
}

.navbar .container {
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.navbar-brand:hover {
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.placeholder-logo {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border: 1px solid #d0d9ff;
}

.app-name {
    font-size: 20px;
    font-weight: 600;
    color: #007AFF;
}

/* Main */
.main {
    padding: 64px 0 80px;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.effective-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 56px;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.policy-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 12px;
}

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

.policy-section ul {
    margin: 12px 0 12px 20px;
}

.policy-section ul li {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 4px;
}

/* Footer */
.footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 60px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: #000;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.footer-col a:hover {
    color: #007AFF;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #f0f0f0;
    padding: 24px 0 40px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.footer-bottom a {
    color: #999;
    text-decoration: underline;
    text-decoration-color: #ccc;
    text-underline-offset: 2px;
}

.footer-bottom a:hover {
    color: #666;
    text-decoration-color: #999;
}

.croco-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 2px;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 30px;
    }

    .main {
        padding: 40px 0 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Dark Mode — system preference */
@media (prefers-color-scheme: dark) {
    html:not(.light) body {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }

    html:not(.light) .navbar {
        border-bottom-color: #333;
    }

    html:not(.light) .page-title {
        color: #f0f0f0;
    }

    html:not(.light) .policy-section h2 {
        color: #f0f0f0;
    }

    html:not(.light) .policy-section p {
        color: #ccc;
    }

    html:not(.light) .policy-section ul li {
        color: #ccc;
    }

    html:not(.light) .footer {
        border-top-color: #333;
    }

    html:not(.light) .footer-col h4 {
        color: #f0f0f0;
    }

    html:not(.light) .footer-col a {
        color: #999;
    }

    html:not(.light) .footer-col a:hover {
        color: #5a9cff;
    }

    html:not(.light) .footer-bottom {
        border-top-color: #333;
        color: #666;
    }

    html:not(.light) .footer-bottom a {
        color: #666;
        text-decoration-color: #444;
    }

    html:not(.light) .footer-bottom a:hover {
        color: #999;
        text-decoration-color: #666;
    }

    html:not(.light) a {
        color: #5a9cff;
    }

    html:not(.light) .app-name {
        color: #5a9cff;
    }
}

/* Dark Mode — manual toggle */
html.dark body {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

html.dark .navbar {
    border-bottom-color: #333;
}

html.dark .page-title {
    color: #f0f0f0;
}

html.dark .policy-section h2 {
    color: #f0f0f0;
}

html.dark .policy-section p {
    color: #ccc;
}

html.dark .policy-section ul li {
    color: #ccc;
}

html.dark .footer {
    border-top-color: #333;
}

html.dark .footer-col h4 {
    color: #f0f0f0;
}

html.dark .footer-col a {
    color: #999;
}

html.dark .footer-col a:hover {
    color: #5a9cff;
}

html.dark .footer-bottom {
    border-top-color: #333;
    color: #666;
}

html.dark .footer-bottom a {
    color: #666;
    text-decoration-color: #444;
}

html.dark .footer-bottom a:hover {
    color: #999;
    text-decoration-color: #666;
}

html.dark a {
    color: #5a9cff;
}

html.dark .app-name {
    color: #5a9cff;
}

/* Pricing Card */
.pricing-card {
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    margin: 0 auto 48px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.pricing-card .plan-name {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #007AFF;
    margin-bottom: 16px;
}

.pricing-card .price {
    font-size: 52px;
    font-weight: 700;
    color: #000;
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-card .price-note {
    font-size: 14px;
    color: #999;
    margin-bottom: 32px;
}

.pricing-card .feature-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    text-align: left;
}

.pricing-card .feature-list li {
    font-size: 15px;
    color: #444;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card .feature-list li:last-child {
    border-bottom: none;
}

.pricing-card .feature-list li::before {
    content: '\2713';
    color: #007AFF;
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-card .btn-buy {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pricing-card .btn-buy:hover {
    background-color: #0066CC;
    text-decoration: none;
}

.pricing-card .price--old {
    font-size: 32px;
    font-weight: 600;
    color: #999;
    text-decoration: line-through;
    line-height: 1;
    margin-bottom: 8px;
}

.pricing-card .promo-label {
    font-size: 20px;
    font-weight: 700;
    color: #34C759;
    margin-bottom: 4px;
}

@media (prefers-color-scheme: dark) {
    html:not(.light) .pricing-card {
        border-color: #333;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
        background: #1e1e1e;
    }

    html:not(.light) .pricing-card .price {
        color: #f0f0f0;
    }

    html:not(.light) .pricing-card .feature-list li {
        border-bottom-color: #2a2a2a;
        color: #ccc;
    }
}

html.dark .pricing-card {
    border-color: #333;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    background: #1e1e1e;
}

html.dark .pricing-card .price {
    color: #f0f0f0;
}

html.dark .pricing-card .feature-list li {
    border-bottom-color: #2a2a2a;
    color: #ccc;
}
