/* ===== Legal Pages Common CSS ===== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

:root {
  --color-bg-main: #FFFDF8;
  --color-bg-section: #F9F3EB;
  --color-text: #2D2520;
  --color-text-light: #5A4D42;
  --color-text-muted: #8B7D6B;
  --color-accent: #B76E79;
  --color-accent-hover: #9E5C66;
  --color-border: #E0D5C8;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

ul {
  list-style: none;
}

.legal-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.legal-header {
  background: var(--color-bg-main);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.legal-header .legal-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.legal-back {
  font-size: 0.875rem;
  color: var(--color-text-light);
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  white-space: nowrap;
}

.legal-back:hover {
  background: var(--color-bg-section);
  text-decoration: none;
  color: var(--color-text);
}

/* ===== Main ===== */
.legal-main {
  padding: 64px 0 96px;
  min-height: 60vh;
}

.legal-main h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 48px;
}

/* ===== Tokushoho Table ===== */
.legal-table dl {
  border-top: 1px solid var(--color-border);
}

.legal-table dt {
  font-weight: 600;
  color: var(--color-text);
  padding: 24px 0 8px;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
}

.legal-table dd {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.9;
}

.legal-table dd ul {
  margin: 8px 0 0 0;
  padding-left: 0;
}

.legal-table dd ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.legal-table dd ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.legal-table dd small {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Desktop: two-column layout for definition list */
@media (min-width: 768px) {
  .legal-table dl {
    display: grid;
    grid-template-columns: 200px 1fr;
  }

  .legal-table dt {
    padding: 24px 24px 24px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .legal-table dd {
    padding: 24px 0;
  }
}

/* ===== Privacy Content ===== */
.legal-content {
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

.legal-intro {
  padding: 20px 24px;
  background: var(--color-bg-section);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  margin-bottom: 40px;
}

.legal-content section {
  margin-bottom: 36px;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.legal-content p {
  margin-bottom: 12px;
  line-height: 1.9;
}

.legal-content ul {
  margin: 12px 0 12px 0;
  padding-left: 0;
}

.legal-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.contact-box {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--color-bg-section);
  border-radius: 8px;
  line-height: 1.9;
}

/* ===== Footer ===== */
.legal-footer {
  background: #2D2520;
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0;
  text-align: center;
}

.legal-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.875rem;
}

.legal-footer-links a {
  color: rgba(255, 255, 255, 0.6);
}

.legal-footer-links a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.legal-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .legal-main {
    padding: 40px 0 64px;
  }

  .legal-main h1 {
    font-size: 1.5rem;
  }

  .legal-updated {
    margin-bottom: 32px;
  }

  .legal-logo img {
    height: 40px;
  }

  .legal-back {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .legal-footer {
    padding: 36px 0;
  }

  .legal-footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
