.legal-hero {
    padding: 140px 32px 60px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    text-align: center;
}

.legal-hero h1 {
    font-size: 2.8rem;
    background: linear-gradient(to right, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.legal-hero p {
    color: #64748b;
    font-size: 0.9rem;
}

.legal-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 32px 100px;
    background: #0f172a;
}

.legal-body h2 {
    font-size: 1.25rem;
    color: #f8fafc;
    margin: 36px 0 10px;
    padding-top: 10px;
    border-top: 1px solid #1e293b;
}

.legal-body h2:first-child {
    border-top: none;
    margin-top: 0;
}

.legal-body p,
.legal-body li {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-body ul {
    padding-left: 22px;
}

.legal-body a {
    color: #3b82f6;
    text-decoration: none;
}

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

.legal-body address {
    font-style: normal;
}

.legal-nav {
    text-align: center;
    padding: 24px;
    background: #1e293b;
    border-top: 1px solid #334155;
}

.legal-nav a {
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s;
}

.legal-nav a:hover {
    color: #3b82f6;
}

.buy-hero {
    padding: 140px 32px 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    text-align: center;
}

.buy-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.buy-hero p {
    color: #94a3b8;
    font-size: 1.15rem;
    max-width: 580px;
    margin: 0 auto;
}

/* ── Pricing grid ───────────────────────────────────────── */
.pricing-section {
    padding: 80px 32px;
    background-color: #1e293b;
}

.pricing-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.pricing-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.pricing-card.featured {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6, 0 20px 50px rgba(59, 130, 246, 0.18);
}

.badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 20px;
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
}

.plan-price {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
}

.plan-price .currency {
    font-size: 1.4rem;
    color: #94a3b8;
    padding-bottom: 6px;
}

.plan-price .period {
    font-size: 0.9rem;
    color: #64748b;
    padding-bottom: 8px;
}

.plan-desc {
    color: #94a3b8;
    font-size: 0.95rem;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.plan-features li i {
    color: #3b82f6;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.plan-features li.disabled {
    color: #475569;
}

.plan-features li.disabled i {
    color: #475569;
}

.btn-buy {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    width: 100%;
}

.btn-buy:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-buy.outline {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.btn-buy.outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* ── Checkout modal ─────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 44px 40px;
    max-width: 520px;
    width: 90%;
    position: relative;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #f8fafc;
}

.modal h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.modal .selected-plan {
    color: #3b82f6;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* Payment method tabs */
.payment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.payment-tab {
    flex: 1;
    min-width: 100px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 12px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
}

.payment-tab i {
    font-size: 1.4rem;
}

.payment-tab:hover,
.payment-tab.active {
    border-color: #3b82f6;
    color: #f8fafc;
    background: rgba(59, 130, 246, 0.1);
}

.payment-tab.active {
    box-shadow: 0 0 0 1px #3b82f6;
}

.payment-panel {
    display: none;
}

.payment-panel.active {
    display: block;
}

/* Stripe card field */
#stripe-card-element {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

#stripe-card-element.StripeElement--focus {
    border-color: #3b82f6;
}

#card-errors {
    color: #f87171;
    font-size: 0.85rem;
    margin-bottom: 14px;
    min-height: 20px;
}

/* PayPal container */
#paypal-button-container {
    margin-bottom: 8px;
}

/* Billing form */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 11px 14px;
    color: #f8fafc;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3b82f6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vat-notice {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 18px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 14px;
    justify-content: center;
}

.secure-badge i {
    color: #3b82f6;
}

/* Trust badges */
.trust-section {
    padding: 60px 32px;
    background: #0f172a;
    text-align: center;
}

.trust-section h3 {
    font-size: 1.1rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    font-weight: 600;
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.trust-badge i {
    font-size: 1.6rem;
    color: #3b82f6;
}

/* FAQ */
.faq-section {
    padding: 80px 32px;
    background: #1e293b;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

details {
    border: 1px solid #334155;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    color: #f8fafc;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
    transition: background 0.2s;
}

summary:hover {
    background: rgba(59, 130, 246, 0.1);
}

summary::after {
    content: '+';
    font-size: 1.4rem;
    color: #3b82f6;
    transition: transform 0.2s;
}

details[open] summary::after {
    content: '−';
}

details p {
    padding: 16px 22px 20px;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
    background: rgba(15, 23, 42, 0.3);
}

.legal-links {
    text-align: center;
    padding: 20px 32px 60px;
    background: #1e293b;
}

.legal-links a {
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #3b82f6;
}

@media (max-width: 600px) {
    .modal {
        padding: 32px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-tab {
        min-width: 80px;
    }
}

/* ── Unique rules from contact page ─────────────────────── */
.info-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 16px 0;
}

.info-card p {
    margin: 0 0 6px;
}

.info-card p:last-child {
    margin: 0;
}

.lang-note {
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 28px;
}

/* ── Unique rules from privacy page ─────────────────────── */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.rights-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 16px;
}

.rights-card strong {
    color: #f8fafc;
    display: block;
    margin-bottom: 4px;
}

.rights-card span {
    color: #94a3b8;
    font-size: 0.88rem;
}

/* ── Unique rules from refund page ──────────────────────── */
.guarantee-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.guarantee-box i {
    color: #3b82f6;
    font-size: 1.8rem;
    margin-top: 2px;
}

.guarantee-box p {
    margin: 0;
}