/* =========================================================
   Legal pages — Privacy & Protection / Terms of Service (Figma 1:240 desktop, 1:3 mobile)
   ========================================================= */
.doc-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 39.6rem;
  padding: 10rem 2rem 5rem;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.doc-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.doc-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.doc-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
}
.doc-hero__inner { position: relative; display: flex; flex-direction: column; gap: 2.8rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; font-size: 1.2rem; }
.crumbs a { color: rgba(255, 255, 255, 0.5); transition: color 0.3s; }
.crumbs a:hover { color: var(--white); }
.crumbs__sep { color: var(--orange); }
.doc-hero__title { font-size: var(--fs-doc); line-height: 1.05; letter-spacing: -0.02em; }
.doc-hero__meta { display: flex; flex-direction: column; gap: 2.8rem; }
.doc-hero__lead { font-size: 1.6rem; line-height: 1.3; letter-spacing: -0.02em; max-width: 78rem; }
.doc-hero__date { font-size: 1.4rem; }

.doc-body { position: relative; background: var(--white); color: var(--black); padding: 0 0 8rem; }

/* table of contents */
.doc-nav { padding: 2.8rem 1.8rem 4rem; }
.doc-nav__title { font-size: 1.2rem; color: #606060; }
.doc-nav__list { margin-top: 2rem; }
.doc-nav__list li { border-bottom: 1px solid #e5e5e5; }
.doc-nav__link { display: flex; align-items: baseline; gap: 1.6rem; min-height: 4.6rem; padding: 1.3rem 0; transition: color 0.3s; }
.doc-nav__num { flex: 0 0 2.2rem; font-size: 1.2rem; color: #606060; transition: color 0.3s; }
.doc-nav__text { flex: 1; font-size: 1.4rem; line-height: 1.25; color: var(--black); transition: transform 0.5s var(--ease), color 0.3s; }
.doc-nav__link:hover .doc-nav__text { transform: translateX(0.6rem); }
.doc-nav__link.is-active .doc-nav__num, .doc-nav__link.is-active .doc-nav__text { color: var(--orange); }
.doc-nav__note { margin-top: 2rem; max-width: 27rem; font-size: 1.4rem; line-height: 1.4; color: #606060; }

/* document */
.doc-content { display: flex; flex-direction: column; gap: 4rem; padding: 0 1.8rem; }
.doc-section { display: flex; flex-direction: column; gap: 2.5rem; border-top: 1px solid #e5e5e5; padding-top: 2.5rem; scroll-margin-top: 10rem; }
.doc-section__head { display: flex; align-items: baseline; gap: 1.4rem; }
.doc-section__num { flex: 0 0 2.5rem; font-size: 1.6rem; color: var(--orange); font-variant-numeric: tabular-nums; }
.doc-section__title { font-size: 2.4rem; line-height: 1.2; letter-spacing: -0.02em; }
.doc-section__text { display: flex; flex-direction: column; gap: 2rem; }
.doc-section__text p { font-size: 1.6rem; line-height: 1.5; color: #606060; }

.doc-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 4rem 1.8rem 0;
  padding-top: 3.2rem;
  border-top: 1px solid #e5e5e5;
  font-size: 1.4rem;
  color: #606060;
}
.doc-end__top { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.6rem; color: var(--orange); }
.doc-end__top i { display: inline-block; font-style: normal; transition: transform 0.5s var(--ease); }
.doc-end__top:hover i { transform: translateY(-0.4rem); }

@media (min-width: 768px) {
  .doc-hero { min-height: 56rem; padding: 14rem var(--side) 6rem; }
  .doc-hero__inner { gap: 3.4rem; }
  .crumbs { gap: 1.2rem; font-size: var(--fs-18); }
  .doc-hero__title { line-height: 1; }
  .doc-hero__meta { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 4rem; }
  .doc-hero__lead { font-size: var(--fs-24); }
  .doc-hero__date { font-size: var(--fs-20); }
  .doc-body {
    display: grid;
    grid-template-columns: 26rem 1fr;
    column-gap: 5rem;
    align-items: start;
    padding: 4.8rem var(--side) 12rem;
  }
  .doc-nav { position: sticky; top: 11rem; padding: 0; }
  .doc-nav__title { font-size: var(--fs-18); }
  .doc-nav__list { margin-top: 3rem; }
  .doc-nav__link { gap: 1.8rem; min-height: 0; padding: 1.9rem 0; }
  .doc-nav__num { flex-basis: 2.8rem; font-size: var(--fs-20); color: #969696; }
  .doc-nav__text { font-size: var(--fs-20); line-height: 1.2; letter-spacing: -0.02em; }
  .doc-nav__note { display: none; }
  .doc-content { gap: 5.6rem; padding: 0; }
  .doc-section { gap: 2.6rem; padding-top: 0; border-top: 0; }
  .doc-section::before { content: ""; height: 1px; background: #e5e5e5; }
  .doc-section__head { gap: 2.4rem; }
  .doc-section__num { flex-basis: 5.8rem; font-size: var(--fs-24); }
  .doc-section__title { font-size: 4rem; line-height: 1.1; }
  .doc-section__text { padding-left: 8.2rem; gap: 2.4rem; }
  .doc-section__text p { font-size: max(2.2rem, 15px); }
  .doc-end { grid-column: 2; margin: 5.6rem 0 0; font-size: var(--fs-18); }
  .doc-end__top { font-size: var(--fs-20); }
}
@media (min-width: 1200px) {
  .doc-hero { min-height: 65.3rem; padding: 0 5rem 10rem; }
  .doc-hero__inner { gap: 3.8rem; }
  .doc-hero__title { max-width: 160rem; }
  .doc-hero__meta { width: 144rem; }
  .doc-body { grid-template-columns: 35rem 115.2rem; column-gap: 17.6rem; padding: 4.8rem 19.2rem 12rem 5rem; }
}
