/* =====================================================
   Aplitiq Shared Styles
   ===================================================== */

:root {
    --deep-slate: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --electric-teal: #14B8A6;
    --teal-dark: #0F9788;
    --teal-light: #CCFBF1;
    --crisp-off-white: #F8FAFC;
    --slate-100: #F1F5F9;
    --pure-white: #FFFFFF;
    --ink-black: #020617;
    --muted-slate: #64748B;
    --light-border: #E2E8F0;
    --text-secondary: #475569;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--crisp-off-white);
    color: var(--ink-black);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--deep-slate);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p { margin-top: 0; color: var(--text-secondary); }

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

img { max-width: 100%; }

/* ---- Navbar ---- */
.navbar {
    background-color: var(--deep-slate);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.logo {
    color: var(--pure-white);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo .logo-accent { color: var(--electric-teal); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #CBD5E1;
    padding: 0.4rem 0.9rem;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--pure-white);
    background: rgba(255,255,255,0.07);
}

.nav-links a.active { color: var(--electric-teal); }

.nav-links a.nav-cta {
    background-color: var(--electric-teal);
    color: var(--pure-white);
    margin-left: 0.5rem;
}

.nav-links a.nav-cta:hover {
    background-color: var(--teal-dark);
    color: var(--pure-white);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--electric-teal);
    color: var(--pure-white);
}

.btn-primary:hover {
    background-color: var(--teal-dark);
    color: var(--pure-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(20,184,166,0.35);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--pure-white);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: var(--pure-white);
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--deep-slate);
    color: var(--deep-slate);
}

.btn-outline-dark:hover {
    background: var(--deep-slate);
    color: var(--pure-white);
}

/* ---- Section helpers ---- */
.section-eyebrow {
    color: var(--electric-teal);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    color: var(--deep-slate);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-slate);
    max-width: 640px;
}

.centered { text-align: center; }
.centered .section-subtitle { margin: 0 auto; }

/* ---- Footer ---- */
.footer {
    background-color: var(--deep-slate);
    color: var(--muted-slate);
    padding: 4rem 5% 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand-col .footer-logo {
    color: var(--pure-white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand-col p {
    font-size: 0.9rem;
    color: var(--muted-slate);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--pure-white);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.footer-col a {
    display: block;
    color: var(--muted-slate);
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
}

.footer-col a:hover { color: var(--pure-white); }

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding-top: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-left { font-size: 0.85rem; }
.footer-bottom-right { font-size: 0.85rem; }

/* ---- Legal page layout ---- */
.legal-hero {
    background: linear-gradient(180deg, var(--deep-slate) 0%, var(--slate-800) 100%);
    color: var(--pure-white);
    padding: 4rem 5%;
    text-align: center;
}

.legal-hero h1 {
    color: var(--pure-white);
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal-hero p {
    color: #94A3B8;
    max-width: 600px;
    margin: 0 auto;
}

.legal-body {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 5%;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.35rem;
    color: var(--deep-slate);
    border-bottom: 2px solid var(--electric-teal);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-size: 1.05rem;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.legal-section p, .legal-section li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li { margin-bottom: 0.4rem; }

.legal-date {
    display: inline-block;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.legal-notice {
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #92400E;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 0.75rem; padding: 1rem 5%; }
    .nav-links { justify-content: center; }
    .nav-links a { font-size: 0.85rem; padding: 0.35rem 0.7rem; }
    .section-title { font-size: 1.75rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .legal-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .navbar { align-items: flex-start; }
    .nav-links a.nav-cta { margin-left: 0; }
}
