/* Trust Center (trust.kvantumci.com). Tokens mirror landing/web/styles.css. */
:root {
    --brand-purple: #a855f7;
    --brand-purple-bright: #c084fc;
    --brand-purple-deep: #7c3aed;
    --canvas: #07070f;
    --surface-1: rgba(255, 255, 255, 0.04);
    --border-strong: rgba(192, 132, 252, 0.32);
    --text-primary: #f8f7ff;
    --text-secondary: rgba(235, 232, 255, 0.72);
    --text-muted: rgba(200, 195, 220, 0.55);
    --container-x: clamp(16px, 4vw, 24px);
    --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', var(--font-body);
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --radius-md: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text-secondary); font-family: var(--font-body); line-height: 1.5; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--container-x); width: 100%; }

.tc-topbar, .tc-footer { background: var(--canvas); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.tc-topbar .container, .tc-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.tc-topbar a, .tc-footer a { color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; }
.tc-topbar a:hover, .tc-footer a:hover { color: var(--text-primary); }
.tc-brand { display: flex; align-items: center; gap: 12px; }
.tc-brand img { height: 32px; }
.tc-brand span { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.16); color: var(--text-primary); font-weight: 600; }
.tc-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 0; font-size: 0.88rem; color: var(--text-muted); }
.tc-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

.tc {
    --tc-ok: #34d399;
    --tc-ok-bg: rgba(52, 211, 153, 0.12);
    --tc-wip: #fbbf24;
    --tc-wip-bg: rgba(251, 191, 36, 0.12);
    --tc-card: rgba(18, 18, 32, 0.72);
    --tc-line: rgba(255, 255, 255, 0.08);
    --tc-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2334d399'/%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2307070f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --tc-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23fbbf24'/%3E%3Cpath d='M10 5.5V10l3 2' fill='none' stroke='%2307070f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    padding: 0 0 80px;
    background: linear-gradient(180deg, #000 0%, rgba(20, 0, 40, 1) 100%);
    color: var(--text-secondary);
}

.tc h2, .tc h3 { font-family: var(--font-display); color: var(--text-primary); letter-spacing: -0.02em; }
.tc a { color: var(--brand-purple-bright); text-decoration: none; }
.tc a:hover { text-decoration: underline; }

/* Header */
.tc-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: end;
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--tc-line);
}
.tc-eyebrow { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-purple-bright); }
.tc-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); color: var(--text-primary); margin: 8px 0 12px; letter-spacing: -0.03em; }
.tc-hero p { max-width: 680px; line-height: 1.7; margin: 0; }
.tc-hero-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; font-size: 0.92rem; }
.tc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tc-btn {
    display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 10px;
    font-weight: 600; font-size: 0.92rem; border: 1px solid var(--border-strong); color: var(--text-primary) !important;
}
.tc-btn:hover { text-decoration: none !important; border-color: var(--brand-purple-bright); }
.tc-btn--primary { background: var(--brand-purple-deep); border-color: var(--brand-purple-deep); }
.tc-btn--primary:hover { background: var(--brand-purple); }

/* Tabs */
.tc-tabs {
    position: sticky; top: 0; z-index: 5;
    display: flex; gap: 28px; overflow-x: auto;
    padding: 14px 0; margin-bottom: 32px;
    background: rgba(7, 7, 15, 0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--tc-line);
}
.tc-tabs a { color: var(--text-secondary); font-weight: 500; white-space: nowrap; }
.tc-tabs a:hover { color: var(--text-primary); text-decoration: none; }
.tc-tabs a[aria-current] { color: var(--text-primary); box-shadow: inset 0 -2px 0 var(--brand-purple-bright); padding-bottom: 12px; margin-bottom: -14px; }

/* Sections and cards */
.tc-section { padding: 0; margin-bottom: 56px; scroll-margin-top: 72px; }
.tc-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tc-section-head h2 { font-size: 1.5rem; margin: 0; }
.tc-card { background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: var(--radius-md); padding: 24px; }
.tc-card h3 { font-size: 1.05rem; margin: 0 0 14px; }

.tc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.tc-fact strong { display: block; color: var(--text-primary); font-size: 1.05rem; margin-bottom: 6px; }
.tc-fact span { font-size: 0.9rem; line-height: 1.55; }

/* 3 cards on top, 2 wider cards below */
.tc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tc-grid > * { grid-column: span 2; }
.tc-grid > :nth-child(n+4) { grid-column: span 3; }

/* Compliance badges */
.tc-badges { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tc-badges li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.tc-badges b + .tc-pill { margin-top: 4px; }
.tc-badge {
    flex: none; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
    color: var(--text-primary); border: 2px solid var(--border-strong); background: rgba(124, 58, 237, 0.18);
}
.tc-badges b { display: block; color: var(--text-primary); font-weight: 600; }

/* Status pills */
.tc-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.tc-pill--ok { color: var(--tc-ok); background: var(--tc-ok-bg); }
.tc-pill--wip { color: var(--tc-wip); background: var(--tc-wip-bg); }
.tc-pill--muted { color: var(--text-muted); background: var(--surface-1); }

/* Control summaries */
.tc-checks { list-style: none; margin: 0 0 14px; padding: 0; }
.tc-checks li { position: relative; padding: 5px 0 5px 28px; font-size: 0.92rem; }
.tc-checks li::before, .tc-control summary::before {
    content: ""; position: absolute; left: 0; width: 18px; height: 18px; background: var(--tc-check) center / contain no-repeat;
}
.tc-checks li::before { top: 7px; }
.tc-checks .tc-wip::before, .tc-control.tc-wip summary::before { background-image: var(--tc-clock); }
.tc-more { font-size: 0.88rem; font-weight: 500; }

/* Full control list */
.tc-category { margin-bottom: 20px; padding: 0; overflow: hidden; scroll-margin-top: 72px; }
.tc-category > h3 { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 18px 24px; border-bottom: 1px solid var(--tc-line); }
.tc-category > h3 span { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.tc-control { border-top: 1px solid var(--tc-line); }
.tc-control:first-of-type { border-top: 0; }
.tc-control summary {
    position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
    padding: 14px 24px 14px 56px; color: var(--text-primary); font-weight: 500;
}
.tc-control summary::-webkit-details-marker { display: none; }
.tc-control summary::before { left: 24px; top: 50%; transform: translateY(-50%); }
.tc-control summary::after { content: "+"; margin-left: auto; color: var(--text-muted); font-size: 1.2rem; line-height: 1; }
.tc-control[open] summary::after { content: "\2212"; }
.tc-control summary:hover { background: var(--surface-1); }
.tc-control p { margin: 0; padding: 0 24px 16px 56px; line-height: 1.65; font-size: 0.93rem; }
.tc-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); border: 1px solid var(--tc-line); border-radius: 6px; padding: 1px 6px; }

/* Resources and sub-processors */
.tc-rows { list-style: none; margin: 0; padding: 0; }
.tc-rows li { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--tc-line); flex-wrap: wrap; }
.tc-rows li:first-child { border-top: 0; }
.tc-rows .tc-row-main { flex: 1 1 260px; }
.tc-rows b { display: block; color: var(--text-primary); font-weight: 600; }
.tc-rows small { font-size: 0.86rem; color: var(--text-muted); }
.tc-note { margin-top: 14px; font-size: 0.9rem; }

@media (max-width: 860px) {
    .tc-hero { grid-template-columns: 1fr; align-items: start; }
    .tc-grid, .tc-badges { grid-template-columns: 1fr; }
    .tc-grid > *, .tc-grid > :nth-child(n+4) { grid-column: auto; }
}
@media (max-width: 520px) {
    .tc-control summary { padding-left: 48px; padding-right: 16px; flex-wrap: wrap; }
    .tc-control summary::before { left: 16px; }
    .tc-control p { padding: 0 16px 16px 48px; }
    .tc-category > h3, .tc-rows li { padding-left: 16px; padding-right: 16px; }
}
