/* Styles for the /security page. Loaded site-wide via head.html.
 * Lives outside src/assets/ so the legacy site stays untouched.
 */

/* ---------- Page hero ---------- */
.ds-security-hero {
  background: var(--ds-bg);
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--ds-border);
}
.ds-security-hero__content {
  max-width: 44rem;
}
.ds-security-hero__title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--ds-text);
  margin: 0 0 1.25rem;
}
.ds-security-hero__sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ds-text-muted);
  margin: 0;
}
.ds-security-hero__sub strong {
  color: var(--ds-text);
}

/* ---------- Section containers ---------- */
.ds-security-section {
  background: var(--ds-bg);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.ds-security-section--alt {
  background: var(--ds-bg-2);
  border-top: 1px solid var(--ds-border);
  border-bottom: 1px solid var(--ds-border);
}

/* ---------- "What DailyStream cannot do" panel ---------- */
.ds-guarantee-panel {
  max-width: 52rem;
  margin: 0 auto;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border-strong);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}
.ds-guarantee-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.ds-guarantee-list > li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ds-border);
}
.ds-guarantee-list > li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.ds-guarantee-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  font-size: 0.95rem;
  font-weight: 700;
}
.ds-guarantee-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ds-text);
  margin: 0 0 0.3rem;
}
.ds-guarantee-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ds-text-muted);
  margin: 0;
}
.ds-guarantee-body code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--ds-blue-bright);
}

/* ---------- Three-zone cards: small zone tag next to the heading ---------- */
.ds-zone-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-text-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ds-border);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  vertical-align: 3px;
  margin-left: 0.4rem;
}
.ds-zone-tag--client {
  color: var(--ds-blue-bright);
  background: rgba(77, 139, 255, 0.10);
  border-color: rgba(77, 139, 255, 0.28);
}

/* ---------- Inline lists used inside the encryption / supply chain cards ---------- */
.ds-security-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.ds-security-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ds-text-muted);
}
.ds-security-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ds-blue-bright);
}
.ds-security-list code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--ds-blue-bright);
}

/* ---------- Cryptographic standards / summary controls table ---------- */
.ds-controls-table {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 60rem;
}
.ds-controls-table__head {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--ds-border);
}
.ds-controls-table__head > div {
  padding: 0.85rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-text-dim);
}
.ds-controls-table__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  border-bottom: 1px solid var(--ds-border);
}
.ds-controls-table__row:last-child {
  border-bottom: none;
}
.ds-controls-table__row > div {
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  color: var(--ds-text);
}
.ds-controls-table__row > div:first-child {
  color: var(--ds-text-muted);
}
.ds-controls-table--two-col .ds-controls-table__head,
.ds-controls-table--two-col .ds-controls-table__row {
  grid-template-columns: 0.8fr 1.6fr;
}
.ds-controls-table code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--ds-blue-bright);
}
.ds-security-footnote {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ds-text-dim);
  margin-top: 1.25rem;
}
.ds-security-footnote code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--ds-blue-bright);
}

/* ---------- Closing CTA ---------- */
.ds-security-cta {
  background: linear-gradient(135deg, var(--ds-blue) 0%, #0c3fa8 100%);
  color: #fff;
  text-align: center;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.ds-security-cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.ds-security-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 auto 1.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .ds-controls-table__head,
  .ds-controls-table__row {
    grid-template-columns: 1fr;
  }
  .ds-controls-table--two-col .ds-controls-table__head,
  .ds-controls-table--two-col .ds-controls-table__row {
    grid-template-columns: 1fr;
  }
  .ds-controls-table__head > div + div,
  .ds-controls-table__row > div + div {
    border-top: 1px solid var(--ds-border);
  }
}
