/* ================================================
   LEGAL PAGES — shared (privacy + sms terms)
   ================================================ */

/* Page Hero */
.page-hero {
    padding: 120px 5% 64px;
    background: linear-gradient(165deg, #f0f7ff 0%, #ffffff 55%, #f8fafc 100%);
    border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 860px; margin: 0 auto; }
.page-label {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--blue); margin-bottom: 1rem;
}
.page-hero h1 {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800; letter-spacing: -1px; line-height: 1.15; color: var(--text);
}
.page-meta { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.page-meta span { font-size: .85rem; color: var(--text-muted); }
.page-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* Policy Body */
.policy-body { padding: 64px 5% 100px; }
.policy-inner { max-width: 860px; margin: 0 auto; }

/* Section structure */
.policy-section { margin-bottom: 3rem; padding-top: 1rem; }
.policy-section h2 {
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
    color: var(--text); margin-bottom: 1.25rem; padding-bottom: .75rem;
    border-bottom: 2px solid var(--blue-mid);
    display: flex; align-items: center; gap: .75rem;
}
.section-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px; background: var(--blue);
    color: #fff; font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.policy-section h3 {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
    color: var(--text); margin: 1.5rem 0 .6rem;
}
.policy-section p { font-size: .95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.policy-section ul, .policy-section ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-section li { font-size: .95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: .4rem; }
.policy-section a { color: var(--blue); text-decoration: none; }
.policy-section a:hover { text-decoration: underline; }

/* Highlight boxes */
.highlight-box {
    border-radius: 12px; padding: 1.5rem 1.75rem; margin: 1.5rem 0;
}
.highlight-box.blue {
    background: var(--blue-light); border: 1.5px solid var(--blue-mid);
    border-left: 4px solid var(--blue);
}
.highlight-box.green {
    background: #f0fdf4; border: 1.5px solid #bbf7d0;
    border-left: 4px solid #16a34a;
}
.highlight-box h4 {
    font-family: var(--font-display); font-size: .95rem; font-weight: 700; margin-bottom: .6rem;
}
.highlight-box.blue h4 { color: var(--blue); }
.highlight-box.green h4 { color: #166534; }
.highlight-box p, .highlight-box li { font-size: .9rem; line-height: 1.7; }
.highlight-box.blue p, .highlight-box.blue li { color: #1e40af; }
.highlight-box.green p, .highlight-box.green li { color: #166534; }
.highlight-box ul { padding-left: 1.25rem; margin-top: .5rem; }
.highlight-box li { margin-bottom: .35rem; }

/* Contact card */
.contact-card {
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: 14px; padding: 2rem; margin-top: 1.5rem;
}
.contact-card p { margin: 0; font-size: .95rem; color: var(--text-muted); line-height: 1.9; }
.contact-card strong { color: var(--text); }


/* ================================================
   PRIVACY PAGE — unique
   ================================================ */

.toc {
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.75rem 2rem; margin-bottom: 3rem;
}
.toc h3 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: .5rem; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; align-items: baseline; gap: .5rem; }
.toc li::before { content: counter(toc) "."; font-size: .8rem; font-weight: 700; color: var(--blue); min-width: 20px; }
.toc a { font-size: .875rem; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.toc a:hover { color: var(--blue); }

.sms-highlight {
    background: var(--blue-light); border: 1.5px solid var(--blue-mid);
    border-left: 4px solid var(--blue); border-radius: 12px;
    padding: 1.5rem 1.75rem; margin: 2rem 0;
}
.sms-highlight h4 {
    font-family: var(--font-display); font-size: .95rem; font-weight: 700;
    color: var(--blue); margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem;
}
.sms-highlight p, .sms-highlight li { font-size: .9rem; color: #1e40af; line-height: 1.7; }
.sms-highlight ul { padding-left: 1.25rem; margin-top: .5rem; }
.sms-highlight li { margin-bottom: .35rem; }


/* ================================================
   SMS TERMS PAGE — unique
   ================================================ */

.quick-ref {
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.75rem 2rem; margin-bottom: 3rem;
}
.quick-ref h3 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 1.25rem; }
.quick-ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.quick-ref-item {
    background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem;
}
.quick-ref-item .label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); margin-bottom: .35rem; }
.quick-ref-item .value { font-size: .9rem; font-weight: 600; color: var(--text); }
.quick-ref-item .value.blue { color: var(--blue); }

.keyword-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.keyword-table thead { background: var(--bg-alt); }
.keyword-table th {
    font-family: var(--font-display); font-size: .8rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted);
    padding: .85rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border);
}
.keyword-table td {
    padding: .85rem 1.25rem; font-size: .9rem; color: var(--text-muted);
    border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.6;
}
.keyword-table tr:last-child td { border-bottom: none; }
.keyword-table tr:nth-child(even) td { background: var(--bg-alt); }
.keyword {
    display: inline-block; background: var(--text); color: #fff;
    border-radius: 6px; padding: .15rem .6rem; font-size: .8rem;
    font-weight: 700; font-family: monospace; letter-spacing: .05em;
}

.msg-examples { display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0; }
.msg-example { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.msg-type { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .5rem; }
.msg-bubble {
    background: #fff; border: 1px solid var(--border);
    border-radius: 12px 12px 12px 4px; padding: .75rem 1rem;
    font-size: .875rem; color: var(--text); line-height: 1.6;
}


/* ================================================
   LEGAL PAGES — responsive
   ================================================ */

@media (max-width: 768px) {
    .page-hero { padding: 100px 5% 48px; }
    .quick-ref-grid { grid-template-columns: 1fr 1fr; }
}