/* ==========================================================================
   TYTEN v2 — Trust Center (/trust)
   Page-level styles. Shared tokens/components live in /assets/v2/tyten-v2.css.
   Every colour is a --v2-* token or a --trs-* property defined for both themes.
   ========================================================================== */

:root,
[data-theme="light"] {
  --trs-ink-on-accent: #211E28;          /* text/icons on the green/lime fills */
  --trs-card-border: rgba(33, 30, 40, 0.2);
  --trs-seal-border: rgba(33, 30, 40, 0.45);
}
[data-theme="dark"] {
  --trs-ink-on-accent: #211E28;
  --trs-card-border: rgba(246, 210, 176, 0.2);
  --trs-seal-border: rgba(246, 210, 176, 0.45);
}

/* Shared bits ------------------------------------------------------------- */
.trs-head { gap: 20px; }
.trs-intro {
  max-width: 760px;
  font-size: var(--v2-fs-sub);
  line-height: 1.55;
  color: var(--v2-text-muted);
}

/* Status pill ("Compliant" / "Auditing" / "Public" / "On request") */
.trs-status {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--v2-r-pill);
  border: 1px solid var(--v2-chip-border);
  font-size: var(--v2-fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--v2-text-muted);
  white-space: nowrap;
}
.trs-status--done {
  border-color: var(--v2-accent);
  background: var(--v2-accent);
  color: var(--trs-ink-on-accent);
}

/* Two-column split: head left, content right (privacy, FAQ, disclosure, company) */
.trs-split {
  display: grid;
  gap: var(--v2-stack-lg);
  align-items: start;
}
@media (min-width: 900px) {
  .trs-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
}

/* 01 Hero ------------------------------------------------------------------ */
.trs-hero__inner {
  display: grid;
  gap: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);   /* 24 → 34 */
  justify-items: start;
}
.trs-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trs-hero__reviewed { font-size: 0.875rem; color: var(--v2-text-muted); }

/* 02 Approach -------------------------------------------------------------- */
.trs-pillars {
  display: grid;
  gap: var(--v2-stack);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .trs-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .trs-pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 03 Compliance ------------------------------------------------------------ */
.trs-certs {
  display: grid;
  gap: var(--v2-stack);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .trs-certs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trs-cert {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(26px, 2.2vw, 32px) clamp(22px, 2vw, 30px);
  border: 1px solid var(--trs-card-border);
  border-radius: 24px;
  background: var(--v2-card-bg);
  transition: border-color var(--v2-dur-slow) ease, background-color var(--v2-dur-slow) ease;
}
.trs-cert:hover { border-color: var(--v2-accent-deep); background: var(--v2-card-bg-hover); }
.trs-cert__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.trs-cert__seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: var(--v2-r-pill);
  border: 1.5px solid var(--trs-seal-border);
  font-family: var(--v2-font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}

/* 04 Security controls ----------------------------------------------------- */
.trs-controls {
  display: grid;
  gap: 36px 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .trs-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .trs-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; } }
.trs-control__title {
  font-family: var(--v2-font-display);
  font-weight: 600;
  font-size: clamp(1.1875rem, 1.15rem + 0.15vw, 1.3125rem);   /* 19 → 21 */
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.trs-control__list { gap: 12px; }
.trs-control__list > li { font-size: 0.96875rem; line-height: 1.5; color: var(--v2-text-body); }
.trs-control__list > li::before { margin-top: 0.6em; background: var(--v2-accent); }

/* 05 Privacy and responsible AI -------------------------------------------- */
.trs-principles {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--v2-line);
}
.trs-principles > .v2-ctrl { gap: 18px; padding: 22px 0; }
@media (min-width: 900px) { .trs-principles > .v2-ctrl { gap: 20px; padding: 26px 0; } }
.trs-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--v2-r-pill);
  background: var(--v2-accent);
  color: var(--trs-ink-on-accent);
}
.trs-icon svg { width: 22px; height: 22px; display: block; }
.trs-principle { display: grid; gap: 8px; }

/* 06 Sub-processors table --------------------------------------------------- */
.trs-table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 1px solid var(--v2-line-soft);
}
.trs-table thead th {
  padding: 0 0 14px;
  text-align: left;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: var(--v2-ls-eyebrow);
  text-transform: uppercase;
  color: var(--v2-text-muted);
}
.trs-table tbody tr { border-top: 1px solid var(--v2-line-soft); }
.trs-table tbody th,
.trs-table tbody td { text-align: left; vertical-align: baseline; }
.trs-table tbody th {
  font-family: var(--v2-font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.trs-table tbody td { font-size: 1.03125rem; line-height: 1.5; color: var(--v2-text-body); }
.trs-table tbody td.trs-table__region { font-size: 1rem; font-weight: 600; color: var(--v2-text); white-space: nowrap; }
.trs-table__label { display: none; }

@media (max-width: 767.98px) {
  .trs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .trs-table, .trs-table tbody, .trs-table tr, .trs-table th, .trs-table td { display: block; }
  .trs-table tbody tr { display: grid; gap: 8px; padding: 20px 0; }
  .trs-table__label {
    display: inline;
    margin-right: 10px;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: var(--v2-ls-eyebrow);
    text-transform: uppercase;
    color: var(--v2-text-muted);
  }
}
@media (min-width: 768px) {
  .trs-table thead th:nth-child(1), .trs-table tbody th { width: 25%; }
  .trs-table thead th:nth-child(3), .trs-table td.trs-table__region { width: 22%; }
  .trs-table thead th + th,
  .trs-table tbody td { padding-left: 32px; }
  .trs-table tbody th, .trs-table tbody td { padding-top: 22px; padding-bottom: 22px; }
}

/* 07 Documents ------------------------------------------------------------- */
.trs-docs {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--v2-line-soft);
}
.trs-docs > li { border-top: 1px solid var(--v2-line-soft); }
.trs-doc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 40px;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
  transition: background-color var(--v2-dur) ease;
}
@media (min-width: 900px) { .trs-doc { padding: 28px 0; } }
.trs-doc:hover { color: inherit; }
.trs-doc__name {
  flex: 1.7 1 420px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.trs-doc__title {
  font-family: var(--v2-font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.2rem + 0.2vw, 1.375rem);   /* 20 → 22 */
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.trs-doc__desc {
  flex: 1.2 1 260px;
  font-size: var(--v2-fs-body);
  line-height: 1.5;
  color: var(--v2-text-muted);
}
.trs-doc__cta {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 150px;
  text-align: right;
  font-weight: 700;
  font-size: 1rem;
  color: var(--v2-accent-ink);
  white-space: nowrap;
}
.trs-doc:hover .trs-doc__title,
.trs-doc:focus-visible .trs-doc__title { color: var(--v2-accent-ink); }
.trs-doc:hover .v2-btn__arrow,
.trs-doc:focus-visible .v2-btn__arrow { transform: translateX(6px); }
@media (max-width: 599.98px) {
  .trs-doc__name, .trs-doc__desc { flex-basis: 100%; }
  .trs-doc__cta { margin-left: 0; text-align: left; min-width: 0; }
}

/* 08 FAQ ------------------------------------------------------------------- */
.trs-faq { border-bottom: 1px solid var(--v2-line-soft); }
.trs-faq__item { border-top: 1px solid var(--v2-line-soft); }
.trs-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--v2-font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);   /* 18 → 21 */
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.trs-faq__q::-webkit-details-marker { display: none; }
.trs-faq__q > span:first-child { opacity: 0.78; transition: opacity 400ms ease; }
.trs-faq__q:hover > span:first-child,
.trs-faq__item[open] .trs-faq__q > span:first-child { opacity: 1; }
.trs-faq__icon {
  flex: none;
  font-family: var(--v2-font-text);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  color: var(--v2-text-muted);
  transition: transform 400ms ease, color 400ms ease;
}
.trs-faq__item[open] .trs-faq__icon { transform: rotate(45deg); color: var(--v2-accent); }
.trs-faq__a { padding: 0 0 22px; }
.trs-faq__a p {
  max-width: 640px;
  font-size: var(--v2-fs-body);
  line-height: 1.55;
  color: var(--v2-text-muted);
}
.trs-faq__a a { color: var(--v2-accent-ink); text-underline-offset: 3px; }
.v2-js .trs-faq__item[open] .trs-faq__a { animation: trs-faq-in 500ms var(--v2-ease); }
@keyframes trs-faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 09 Disclosure ------------------------------------------------------------ */
.trs-disclosure__body { display: grid; gap: 34px; align-content: start; }
.trs-disclosure__body .trs-intro { max-width: none; }
@media (max-width: 599.98px) {
  .trs-disclosure__body .v2-btn { width: 100%; }
}

/* 10 Company details -------------------------------------------------------- */
.trs-company { padding-bottom: clamp(3.25rem, 2.5rem + 3vw, 4.5rem); }
.trs-company::after {
  content: "";
  position: absolute;
  left: var(--v2-gutter);
  right: var(--v2-gutter);
  bottom: 0;
  height: 1px;
  background: var(--v2-grad-rule);
}
.trs-company__body { display: grid; gap: 26px; align-content: start; }
.trs-company__lead,
.trs-company__note { font-size: var(--v2-fs-sub); line-height: 1.55; color: var(--v2-text-body); }
.trs-company__note { color: var(--v2-text-muted); }
.trs-company__note a { color: inherit; text-underline-offset: 3px; }
.trs-company__note a:hover { color: var(--v2-accent-ink); }

@media (prefers-reduced-motion: reduce) {
  .trs-faq__icon, .trs-faq__q > span:first-child, .trs-cert, .trs-doc { transition: none; }
  .v2-js .trs-faq__item[open] .trs-faq__a { animation: none; }
}
