/* ─── Security page ─────────────────────────────────────────────────────────── */

/* Hero */
.sec-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.sec-hero__inner {
  max-width: 720px;
}

.sec-hero h1 {
  margin: .6rem 0 1.1rem;
  font-size: var(--h1);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.sec-hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1.8rem;
  max-width: 640px;
}

.sec-hero__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: var(--muted);
}

.sec-hero__meta a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sec-hero__meta a:hover { color: #fff }

.sec-hero__sep { opacity: .4 }

/* Body layout: sticky sidebar + content */
.sec-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

/* Sidebar nav */
.sec-nav {
  position: sticky;
  top: calc(72px + 2rem);
}

.sec-nav nav {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.sec-nav a {
  display: block;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}

.sec-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
  border-left-color: var(--accent);
}

/* Content area */
.sec-content {
  min-width: 0;
}

/* Sections */
.sec-section {
  padding-top: 3.5rem;
  border-top: 1px solid var(--border);
}

.sec-section:first-child { border-top: none; padding-top: 0 }

.sec-section h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 .85rem;
  letter-spacing: -.01em;
}

.sec-section > p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 72ch;
}

.sec-section > p:last-child { margin-bottom: 0 }

/* Card grid */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.sec-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.sec-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s;
}

.sec-card:hover { border-color: var(--border-strong) }

.sec-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: .85rem 0 .5rem;
}

.sec-card p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Card icon */
.sec-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, .15);
  color: var(--accent-2);
  border: 1px solid rgba(139, 92, 246, .25);
}

.sec-card__icon--red {
  background: rgba(239, 68, 68, .12);
  color: #f87171;
  border-color: rgba(239, 68, 68, .25);
}

.sec-card__icon--yellow {
  background: rgba(245, 158, 11, .12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, .25);
}

.sec-card__icon--green {
  background: rgba(52, 211, 153, .12);
  color: #34d399;
  border-color: rgba(52, 211, 153, .25);
}

.sec-card__icon--purple {
  background: rgba(139, 92, 246, .15);
  color: var(--accent-2);
  border-color: rgba(139, 92, 246, .25);
}

/* Checklist */
.sec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sec-list:last-child { margin-bottom: 0 }

.sec-list li {
  display: flex;
  gap: .85rem;
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.65;
}

.sec-list li strong { color: #fff }

.sec-list li a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sec-list li a:hover { color: #fff }

.sec-list li code {
  font-family: "Reddit Mono", monospace;
  font-size: .8rem;
  background: rgba(255,255,255,.07);
  padding: .1em .4em;
  border-radius: 5px;
  color: #c4b5fd;
}

.sec-list__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .3);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .15rem;
}

/* Do / don't grid */
.sec-store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 1.5rem;
}

.sec-store-col {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.sec-store-col h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sec-store-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-size: .875rem;
  color: var(--muted);
}

.sec-store-col--do {
  background: rgba(52, 211, 153, .04);
  border-color: rgba(52, 211, 153, .15);
}

.sec-store-col--do h3 { color: #34d399 }

.sec-store-col--dont {
  background: rgba(248, 113, 113, .04);
  border-color: rgba(248, 113, 113, .15);
}

.sec-store-col--dont h3 { color: #f87171 }

.sec-store-note {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(248, 113, 113, .15);
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.sec-store-note strong { color: #fff }

/* Callout */
.sec-callout {
  display: flex;
  gap: 1rem;
  background: rgba(139, 92, 246, .07);
  border: 1px solid rgba(139, 92, 246, .2);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.sec-callout > svg {
  flex-shrink: 0;
  color: var(--accent-2);
  margin-top: .15rem;
}

.sec-callout strong { color: #fff }

.sec-callout a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sec-callout a:hover { color: #fff }

.sec-callout--cta {
  background: rgba(139, 92, 246, .1);
  border-color: rgba(139, 92, 246, .3);
}

.sec-callout--cta p {
  margin: .35rem 0 0;
  color: var(--muted);
}

/* Disclosure steps */
.sec-disclosure {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.75rem 0;
}

.sec-disclosure__step {
  display: flex;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.sec-disclosure__step:first-child { padding-top: 0 }
.sec-disclosure__step:last-child { border-bottom: none; padding-bottom: 0 }

.sec-disclosure__step > div:last-child {
  font-size: .9375rem;
}

.sec-disclosure__step strong {
  display: block;
  font-weight: 700;
  margin-bottom: .3rem;
  color: #fff;
}

.sec-disclosure__step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.sec-disclosure__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(139, 92, 246, .15);
  border: 1px solid rgba(139, 92, 246, .3);
  color: var(--accent-2);
  font-size: .8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .sec-body {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
  }

  .sec-nav {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
  }

  .sec-nav nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .25rem;
  }

  .sec-nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: .35rem .6rem;
  }

  .sec-nav a:hover {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .sec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sec-hero { padding: 3rem 0 2.5rem }

  .sec-grid,
  .sec-grid--2col {
    grid-template-columns: 1fr;
  }

  .sec-store-grid {
    grid-template-columns: 1fr;
  }

  .sec-disclosure__step { gap: 1rem }

  .sec-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }

  .sec-hero__sep { display: none }
}
