/* ============================================================
   LEGAL PAGES STYLESHEET (Contact, T&C, Refund Policy)
   Matches Calm Parenthood design system
   ============================================================ */

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

:root {
    --primary:       #6366f1;
    --primary-light: #818cf8;
    --primary-dark:  #4f46e5;
    --secondary:     #10b981;
    --accent:        #f59e0b;
    --danger:        #ef4444;
    --dark:          #0f172a;
    --gray-900:      #111827;
    --gray-800:      #1f2937;
    --gray-700:      #374151;
    --gray-600:      #4b5563;
    --gray-500:      #6b7280;
    --gray-400:      #9ca3af;
    --gray-300:      #d1d5db;
    --gray-200:      #e5e7eb;
    --gray-100:      #f3f4f6;
    --gray-50:       #f9fafb;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--gray-900);
    background: #fff;
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ── Navigation ── */
.nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

@media (min-width: 968px) { .nav { padding: 20px 0; } }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 968px) { .nav-container { padding: 0 40px; } }

.logo {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

@media (min-width: 968px) { .logo { font-size: 28px; } }

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 968px) { .logo-image { height: 60px; } }

.nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-back:hover {
    color: var(--primary);
    text-decoration: none;
}

.nav-back svg {
    width: 20px;
    height: 20px;
}

/* ── Page Header ── */
.page-header {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 968px) { .page-header { padding: 120px 0 80px; } }

.page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@media (min-width: 968px) { .page-header::before { width: 600px; height: 600px; } }

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

@media (min-width: 968px) { .container { padding: 0 40px; } }

.page-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ddd6fe, #c7d2fe);
    color: #5b21b6;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 640px) { .page-badge { font-size: 13px; } }

.page-header h1 {
    font-size: 36px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) { .page-header h1 { font-size: 44px; } }
@media (min-width: 968px) { .page-header h1 { font-size: 56px; margin-bottom: 20px; } }

.page-header p {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 968px) { .page-header p { font-size: 20px; } }

.last-updated {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 12px;
    font-style: italic;
}

/* ── Content Section ── */
.content-section {
    padding: 60px 0 80px;
    background: white;
}

@media (min-width: 968px) { .content-section { padding: 80px 0 100px; } }

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--gray-900);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

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

@media (min-width: 968px) {
    .content-wrapper h2 { font-size: 32px; margin-top: 60px; }
}

.content-wrapper h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--gray-800);
}

@media (min-width: 968px) { .content-wrapper h3 { font-size: 24px; } }

.content-wrapper p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.content-wrapper ul, .content-wrapper ol {
    margin: 20px 0 20px 24px;
    color: var(--gray-700);
}

.content-wrapper li {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 16px;
}

.content-wrapper strong {
    color: var(--gray-900);
    font-weight: 600;
}

.content-wrapper em {
    color: var(--gray-600);
}

/* ── Contact Cards ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
}

@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 968px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border: 2px solid var(--gray-100);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

@media (min-width: 968px) { .contact-card { padding: 40px 32px; } }

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99,102,241,0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

@media (min-width: 968px) { .contact-icon { width: 70px; height: 70px; font-size: 36px; } }

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 0;
}

.contact-card a {
    color: var(--primary);
    font-weight: 600;
    word-break: break-all;
}

/* ── Info Boxes ── */
.info-box {
    background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(16,185,129,0.05) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 32px 0;
}

.info-box p {
    margin-bottom: 0;
}

.warning-box {
    background: linear-gradient(135deg, rgba(239,68,68,0.05) 0%, rgba(245,158,11,0.05) 100%);
    border-left: 4px solid var(--danger);
}

.success-box {
    background: linear-gradient(135deg, rgba(16,185,129,0.05) 0%, rgba(5,150,105,0.05) 100%);
    border-left: 4px solid var(--secondary);
}

/* ── Footer ── */
footer {
    background: var(--dark);
    color: white;
    padding: 52px 0 28px;
}

@media (min-width: 968px) { footer { padding: 80px 0 40px; } }

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

@media (min-width: 640px) { .footer-content { grid-template-columns: 1fr 1fr; } }
@media (min-width: 968px) { .footer-content { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; } }

.footer-brand h3 {
    font-size: 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-light), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 968px) { .footer-brand h3 { font-size: 28px; } }

.footer-logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

@media (min-width: 968px) { .footer-logo-image { height: 50px; } }

.footer-brand p {
    color: var(--gray-400);
    line-height: 1.7;
    font-size: 14px;
}

.footer-links h4 {
    font-size: 14px;
    margin-bottom: 14px;
    color: white;
}

.footer-links ul {
    list-style: none;
    margin: 0;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    transition: color 0.3s;
    min-height: 44px;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 28px;
    text-align: center;
    color: var(--gray-500);
    font-size: 13px;
}

/* ── Social Media Icons ── */
.footer-social {
    margin-top: 24px;
}

.footer-social h4 {
    font-size: 14px;
    margin-bottom: 14px;
    color: white;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* ── Utilities ── */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-40 { margin-top: 40px; }