/* Security page. Builds on base.css tokens. */

.section { padding-block: clamp(72px, 10vw, 128px); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink-2); }
.section-head { display: grid; gap: 18px; justify-items: start; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: var(--step-3); text-transform: uppercase; }
.section-head p { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }

.hero-sec { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.hero-sec .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: start; max-width: 760px; }
.hero-sec h1 { font-size: var(--step-4); font-stretch: 122%; font-weight: 900; text-transform: uppercase; line-height: .96; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 58ch; }

/* ---- pillars: the 6 tech blocks ---- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 36px); background: var(--ink); }
.pillar-icon { color: var(--cyan); }
.pillar h3 { font: 800 1.15rem/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; }
.pillar p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ---- rules: numbered best-practices ---- */
.rules { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line-2); margin-bottom: clamp(32px, 5vw, 56px); }
.rule { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 24px; padding: clamp(24px, 3vw, 36px); background: var(--panel); }
.rule-num { grid-row: 1 / 3; align-self: start; font-size: 1.6rem; color: var(--cyan); line-height: 1; }
.rule h3 { font: 800 1.15rem/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; }
.rule p { color: var(--muted); font-size: .94rem; line-height: 1.55; }

.summary-box { border: 1px solid var(--cyan); border-left: 3px solid var(--cyan); padding: 24px 28px; background: rgba(35, 213, 255, .04); }
.summary-box p { color: var(--muted); font-size: .96rem; line-height: 1.55; }
.summary-box b { color: var(--text); }

.warn-tag { color: var(--warn) !important; border-color: rgba(232, 182, 62, .4) !important; }

/* ---- official servers grid ---- */
.off-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line-2); }
.off-card { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 3vw, 36px); background: var(--ink); }
.off-card h3 { font: 800 1.15rem/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; }
.checks { list-style: none; width: 100%; border-top: 1px solid var(--line); }
.checks li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.checks li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 8px; height: 2px; background: var(--cyan); }
.checks li b { color: var(--text); font-weight: 600; }

/* ---- closing ---- */
.final { padding-block: clamp(64px, 9vw, 112px); background: var(--ink-2); }
.final-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.final h2 { font-size: var(--step-3); text-transform: uppercase; max-width: 22ch; }

/* ---- narrow ---- */
@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .off-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .rule { grid-template-columns: minmax(0, 1fr); }
  .rule-num { grid-row: auto; }
}
