/* Shared styling for ChairFill's public legal pages (/terms, /dpa, /subprocessors).
   Lifted verbatim from privacy.html so all four pages read as one document set.
   privacy.html keeps its own inline copy deliberately — it is a live, indexed page and
   nothing is gained by risking it for the sake of removing duplication. */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0f172a;
    color: #cbd5e1;
    line-height: 1.7;
    padding: 40px 20px 80px;
    max-width: 820px;
    margin: 0 auto;
}

h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.4rem;
    text-align: center;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.date {
    color: #38bdf8;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h2 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 0.5rem;
    font-weight: 800;
}

h3 {
    color: #e2e8f0;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

p {
    color: #cbd5e1;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

strong { color: #f1f5f9; }

ul {
    list-style: none;
    margin: 0.5rem 0 1rem 0;
    padding: 0;
}

ul li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

ul li::before {
    content: "→";
    color: #38bdf8;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

a {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover { color: #7dd3fc; }

.badge {
    display: inline-block;
    background: #1e3a5f;
    border: 1px solid #1d4ed8;
    color: #93c5fd;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 10px;
    border-radius: 999px;
    margin-right: 8px;
    vertical-align: middle;
}

.badge.green { background: #052e16; border-color: #166534; color: #86efac; }
.badge.amber { background: #1c1403; border-color: #92400e; color: #fcd34d; }

.contact-box {
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 20px;
    border-radius: 12px;
    margin-top: 1rem;
}

.contact-box p { margin-bottom: 0.5rem; }
.contact-box strong { color: #38bdf8; }

.note-box {
    background: #0c1a2e;
    border: 1px solid #1e3a5f;
    border-left: 3px solid #38bdf8;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: #93c5fd;
}

hr {
    border: none;
    border-top: 1px solid #1e293b;
    margin: 2rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.15s;
}

.back-link:hover { color: #38bdf8; }

/* Tables — used by the sub-processor list and the DPA annexes. They carry the detail a
   controller's lawyer looks for, so they must stay readable on a phone: the wrapper
   scrolls rather than letting the page itself scroll sideways. */
.table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
    border: 1px solid #1e293b;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 560px;
}

thead th {
    background: #1e293b;
    color: #f1f5f9;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    white-space: nowrap;
}

tbody td {
    padding: 10px 14px;
    border-top: 1px solid #1e293b;
    color: #cbd5e1;
    vertical-align: top;
}

tbody tr:nth-child(even) { background: rgba(30, 41, 59, 0.25); }

/* Cross-links between the four legal pages, shown under the title. */
.doc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.doc-nav a {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 999px;
    padding: 4px 12px;
    transition: all 0.15s;
}

.doc-nav a:hover { color: #38bdf8; border-color: #1d4ed8; }
.doc-nav a[aria-current="page"] { color: #38bdf8; border-color: #1d4ed8; background: #0c1a2e; }
