/* Refund policy – unique styles (shared styles in legal-shared.css) */

:root {
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --cyan: #06b6d4;
    --green: #10b981;
    --yellow: #f59e0b;
    --red: #ef4444;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Background */
.bg-blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.blob { opacity: 0.07; animation: blobFloat 10s ease-in-out infinite; }
.blob-1 { width: 500px; height: 500px; background: var(--purple); top: -150px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--cyan); bottom: 10%; left: -100px; animation-delay: 4s; }
.blob-3 { width: 300px; height: 300px; background: var(--green); top: 50%; right: 10%; animation-delay: 2s; }
@keyframes blobFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-25px);} }
.grid-overlay { position: fixed; inset: 0; background-image: linear-gradient(var(--clr-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--clr-grid-line) 1px, transparent 1px); background-size: 50px 50px; pointer-events: none; z-index: 0; }

/* Navbar */
.navbar { background: var(--clr-surface-elevated); border-bottom: 1px solid var(--clr-border); backdrop-filter: blur(20px); padding: 14px 0; position: sticky; top: 0; z-index: 1000; }
.navbar-brand { font-weight: 900; font-size: 1.5rem; color: var(--clr-on-surface) !important; text-decoration: none; }
.navbar-brand span { color: var(--purple-light); }
.nav-link { color: var(--clr-muted) !important; font-weight: 600; font-size: 0.9rem; transition: color 0.2s; padding: 6px 14px !important; }
.nav-link:hover { color: var(--clr-on-surface) !important; }

/* Hero */
.page-hero { position: relative; z-index: 1; padding: 80px 0 60px; text-align: center; border-bottom: 1px solid var(--clr-border); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 18px; border-radius: 50px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: #6ee7b7; font-size: 0.82rem; font-weight: 700; margin-bottom: 20px; }
.hero-badge i { font-size: 0.9rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 16px; }
.page-hero h1 span { background: linear-gradient(135deg, var(--green), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero p { color: var(--clr-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto 28px; line-height: 1.8; }
.meta-info { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 6px; color: var(--clr-muted); font-size: 0.85rem; }
.meta-item i { color: var(--purple-light); }

/* Layout */
.content-wrapper { position: relative; z-index: 1; padding: 60px 0 80px; }

/* TOC Sidebar */
.toc-sidebar { position: sticky; top: 90px; }
.toc-card { background: var(--clr-card); border: 1px solid var(--clr-border); border-radius: 18px; padding: 24px; }
.toc-card h6 { font-size: 0.8rem; font-weight: 700; color: var(--clr-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.toc-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--clr-muted); font-size: 0.85rem; font-weight: 600; transition: all 0.2s; margin-bottom: 4px; border: 1px solid transparent; }
.toc-link:hover, .toc-link.active { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.2); color: var(--purple-light); }
.toc-link .toc-num { width: 22px; height: 22px; border-radius: 6px; background: var(--clr-white-hover); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; flex-shrink: 0; }
.toc-link:hover .toc-num, .toc-link.active .toc-num { background: rgba(124,58,237,0.2); color: var(--purple-light); }

/* Summary cards */
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.summary-card { background: var(--clr-card); border: 1px solid var(--clr-border); border-radius: 16px; padding: 20px; text-align: center; transition: all 0.3s; }
.summary-card:hover { transform: translateY(-4px); }
.summary-card.green { border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.05); }
.summary-card.yellow { border-color: rgba(245,158,11,0.25); background: rgba(245,158,11,0.05); }
.summary-card.red { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.05); }
.summary-icon { font-size: 2rem; margin-bottom: 10px; }
.summary-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.summary-card.green .summary-title { color: #6ee7b7; }
.summary-card.yellow .summary-title { color: #fde68a; }
.summary-card.red .summary-title { color: #fca5a5; }
.summary-desc { font-size: 0.78rem; color: var(--clr-muted); line-height: 1.5; }

/* Content sections */
.content-section { margin-bottom: 48px; scroll-margin-top: 100px; }
.section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--clr-border); }
.section-num { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--purple), #6d28d9); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.9rem; flex-shrink: 0; color: #fff; }
.section-header h2 { font-size: 1.3rem; font-weight: 800; margin: 0; }
.section-body { color: var(--clr-muted); line-height: 1.9; font-size: 0.95rem; }
.section-body p { margin-bottom: 16px; }
.section-body p:last-child { margin-bottom: 0; }

/* Info boxes */
.info-box { border-radius: 14px; padding: 18px 20px; margin: 20px 0; display: flex; gap: 14px; }
.info-box.success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); }
.info-box.warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.info-box.danger { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); }
.info-box.info { background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.2); }
.info-box-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.info-box-body { flex: 1; }
.info-box-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.info-box.success .info-box-title { color: #6ee7b7; }
.info-box.warning .info-box-title { color: #fde68a; }
.info-box.danger .info-box-title { color: #fca5a5; }
.info-box.info .info-box-title { color: #67e8f9; }
.info-box-text { font-size: 0.88rem; color: var(--clr-muted); line-height: 1.7; }

/* Refund table */
.refund-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--clr-border); margin: 20px 0; }
.refund-table thead tr { background: rgba(124,58,237,0.15); }
.refund-table th { padding: 14px 18px; font-size: 0.85rem; font-weight: 700; color: var(--purple-light); border-bottom: 1px solid var(--clr-border); }
.refund-table td { padding: 13px 18px; font-size: 0.88rem; color: var(--clr-muted); border-bottom: 1px solid var(--clr-grid-line); background: var(--clr-card); }
.refund-table tr:last-child td { border-bottom: none; }
.refund-table tr:hover td { background: var(--clr-white-hover); }
.badge-green { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; background: rgba(16,185,129,0.12); color: #6ee7b7; font-size: 0.78rem; font-weight: 700; }
.badge-yellow { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; background: rgba(245,158,11,0.12); color: #fde68a; font-size: 0.78rem; font-weight: 700; }
.badge-red { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; background: rgba(239,68,68,0.12); color: #fca5a5; font-size: 0.78rem; font-weight: 700; }

/* Steps */
.steps-list { list-style: none; padding: 0; margin: 20px 0; }
.steps-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--clr-grid-line); }
.steps-list li:last-child { border-bottom: none; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), #6d28d9); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; flex-shrink: 0; margin-top: 2px; color: #fff; }
.step-content { flex: 1; }
.step-title { font-weight: 700; color: var(--clr-text); margin-bottom: 4px; font-size: 0.95rem; }
.step-desc { color: var(--clr-muted); font-size: 0.88rem; line-height: 1.6; }

/* Checklist */
.check-list { list-style: none; padding: 0; margin: 16px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; color: var(--clr-muted); font-size: 0.9rem; line-height: 1.6; }
.check-list li i { margin-top: 3px; flex-shrink: 0; }
.check-list li i.bi-check-circle-fill { color: var(--green); }
.check-list li i.bi-x-circle-fill { color: var(--red); }
.check-list li i.bi-exclamation-circle-fill { color: var(--yellow); }

/* CTA */
.cta-section { background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(6,182,212,0.08)); border: 1px solid rgba(124,58,237,0.2); border-radius: 20px; padding: 40px; text-align: center; margin-top: 48px; }
.cta-section h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.cta-section p { color: var(--clr-muted); margin-bottom: 24px; font-size: 0.95rem; }
.btn-primary-custom { background: linear-gradient(135deg, var(--purple), #6d28d9); border: none; color: #fff; padding: 13px 32px; border-radius: 14px; font-family: 'Cairo', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124,58,237,0.35); color: #fff; }
.btn-outline-custom { background: transparent; border: 1px solid var(--clr-border); color: var(--clr-text); padding: 13px 28px; border-radius: 14px; font-family: 'Cairo', sans-serif; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline-custom:hover { background: var(--clr-white-hover); color: var(--clr-on-surface); transform: translateY(-2px); }

/* Footer */
footer { background: var(--clr-white-hover); border-top: 1px solid var(--clr-border); padding: 40px 0 24px; position: relative; z-index: 1; }
.footer-brand { font-weight: 900; font-size: 1.4rem; color: var(--clr-on-surface); margin-bottom: 8px; }
.footer-brand span { color: var(--purple-light); }
.footer-link { color: var(--clr-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-link:hover { color: var(--clr-on-surface); }
.footer-divider { border-color: var(--clr-border); margin: 24px 0 20px; }

@media (max-width: 768px) {
    .summary-grid { grid-template-columns: 1fr; }
    .toc-sidebar { display: none; }
    .page-hero { padding: 50px 0 40px; }
}

/* ── Light Mode ── */
html[data-theme="light"] .summary-card { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
html[data-theme="light"] .summary-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
html[data-theme="light"] .toc-card { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
html[data-theme="light"] .refund-table { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
html[data-theme="light"] .cta-section { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
html[data-theme="light"] .btn-primary-custom { box-shadow: 0 8px 24px rgba(99,102,241,0.2); }
html[data-theme="light"] .refund-table thead tr { background: rgba(124,58,237,0.08); }
