/* ==========================================================================
   SHINOBU — legal / record pages (terms, privacy)
   Paper editorial skin for the standalone pages linked from the dossier.
   Loaded after style.css and paper.css on purpose.
   ========================================================================== */

#screen-security {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  background: transparent;
}

#screen-security::after {
  content: none;
}

#screen-security .container {
  display: block;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.2rem, 4vw, 2.5rem) 5rem;
}

#screen-security .btn-back {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.sec-title {
  max-width: 16ch;
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-transform: uppercase;
}

.sec-subtitle {
  margin: 0 0 clamp(2rem, 5vw, 3.2rem);
  padding: 0 0 1.1rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}

.sec-heading {
  margin: clamp(2rem, 5vw, 3rem) 0 1.2rem;
  padding: 0 0 0.7rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sec-heading:first-of-type {
  margin-top: 0;
}

.sec-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1.4rem;
  margin: 0;
  padding: 1.45rem 0;
  position: static;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
}

.sec-card:last-of-type {
  border-bottom: 1px solid var(--line);
}

.sec-card::before {
  content: none;
}

.sec-card-title {
  margin: 0;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.sec-card-body {
  max-width: 62ch;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.75;
  letter-spacing: -0.005em;
}

.sec-body {
  max-width: 62ch;
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.75;
}

.sec-body strong {
  color: var(--red-deep);
  font-weight: 700;
}

.sec-list {
  margin: 0.4rem 0 1rem;
  padding: 0;
  list-style: none;
}

.sec-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.4rem;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.7;
}

.sec-list li::before {
  content: '—';
  position: absolute;
  top: 0.4rem;
  left: 0;
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 600;
}

.sec-divider {
  width: 44px;
  height: 2px;
  margin: 1.8rem 0;
  background: var(--red);
  border: 0;
  opacity: 1;
}

.sec-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: 2rem;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-align: left;
  text-transform: uppercase;
}

.sec-footer a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.sec-footer a:hover {
  border-bottom-color: var(--red);
}

@media (max-width: 640px) {
  #screen-security .container {
    padding: 1.8rem 1.15rem 3.5rem;
  }

  .sec-title {
    max-width: none;
    font-size: clamp(2.4rem, 13vw, 3.6rem);
  }

  .sec-subtitle {
    margin-bottom: 2rem;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }

  .sec-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding: 1.2rem 0;
  }

  .sec-card-title {
    font-size: 0.53rem;
    letter-spacing: 0.1em;
  }

  .sec-card-body,
  .sec-body {
    font-size: 0.86rem;
    line-height: 1.7;
  }

  .sec-list li {
    font-size: 0.84rem;
  }

  .sec-footer {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }
}
