/* ============================================================
   合同会社TTD — Legal Pages (Privacy / Tokusho)
   ============================================================ */

/* ---------- Page Hero ---------- */
.legal-hero {
  padding: 140px 0 60px;
  background: linear-gradient(140deg, #0d0d0d 0%, #1a1a1a 55%, #2a2a2a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,0,45,.10) 0%, transparent 65%);
  pointer-events: none;
}
.legal-hero-label {
  display: inline-block;
  background: rgba(232,0,45,.15);
  color: var(--red);
  border: 1px solid rgba(232,0,45,.35);
  padding: 5px 18px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.legal-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}
.legal-hero-date {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

/* ---------- Main Content ---------- */
.legal-main {
  padding: 72px 0 96px;
  background: var(--white);
}
.legal-body {
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Intro Text ---------- */
.legal-intro {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 48px;
  padding: 24px 28px;
  background: var(--gray-bg);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ---------- Sections ---------- */
.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-bd);
}
.legal-section:last-of-type {
  border-bottom: none;
}
.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 3px solid var(--red);
  line-height: 1.4;
}
.legal-section p {
  font-size: .95rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  list-style: none;
  margin: 14px 0 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section ul li {
  font-size: .93rem;
  line-height: 1.7;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.legal-section ul li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ---------- Tables ---------- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.legal-table th,
.legal-table td {
  padding: 14px 18px;
  text-align: left;
  border: 1px solid var(--gray-bd);
  line-height: 1.75;
  vertical-align: top;
}
.legal-table th {
  background: var(--gray-bg);
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  width: 180px;
}
.legal-table td {
  color: var(--text);
}
.legal-table td a {
  color: var(--red);
  text-decoration: underline;
}
.legal-table td a:hover { opacity: .8; }

/* Main table variant (larger th) */
.legal-table--main th { width: 200px; }

/* ---------- Note / Highlight ---------- */
.legal-note {
  margin-top: 12px;
  font-size: .84rem !important;
  color: var(--text-lt) !important;
  padding: 10px 14px !important;
  background: var(--gray-bg) !important;
  border-radius: var(--r-sm);
}
.legal-highlight {
  display: inline-block;
  margin-top: 8px;
  font-size: .88rem;
  color: var(--red);
  font-weight: 700;
}

/* ---------- Contact Box ---------- */
.legal-contact-box {
  background: var(--gray-bg);
  border-radius: var(--r-md);
  padding: 28px 32px;
  margin-top: 16px;
}
.legal-contact-box > p {
  margin-bottom: 16px;
  font-size: .95rem;
  color: var(--text);
}

/* ---------- Closing ---------- */
.legal-closing {
  text-align: right;
  font-size: .88rem;
  color: var(--text-lt);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-bd);
}

/* ---------- Back Button ---------- */
.legal-back {
  max-width: 820px;
  margin: 48px auto 0;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .legal-hero { padding: 120px 0 48px; }
  .legal-main  { padding: 52px 0 72px; }

  .legal-table th,
  .legal-table--main th { width: 110px; font-size: .84rem; }
  .legal-table td       { font-size: .84rem; }
  .legal-table th,
  .legal-table td       { padding: 12px 14px; }

  .legal-contact-box { padding: 20px; }
}

@media (max-width: 480px) {
  .legal-table { display: block; overflow-x: auto; }
}
