/* ── Hottoly Legal Pages ── Shared Stylesheet ── */

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

:root {
  --primary: #d97706;
  --primary-light: #f59e0b;
  --primary-pale: #fef3c7;
  --primary-dark: #b45309;
  --secondary: #1e3a5f;
  --surface: #ffffff;
  --surface-warm: #fffbf5;
  --surface-alt: #f8f6f3;
  --text-primary: #1a1a2e;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-light: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius-md: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--text-primary);
  background: var(--surface-warm);
  line-height: 1.8;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 245, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.legal-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.legal-header-logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.legal-header-back {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.legal-header-back:hover {
  color: var(--primary);
}

/* ── Main Content ── */
.legal-main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-main h1 {
  font-family: 'Nunito', 'Noto Sans JP', sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.legal-intro {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.9;
}

.legal-main h2 {
  font-family: 'Nunito', 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
  line-height: 1.4;
}

.legal-main h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-main p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.legal-main ul {
  padding-left: 0;
  margin-bottom: 16px;
  list-style: none;
}

.legal-main ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-main ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}

.legal-main a {
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.legal-main a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── Support Page Specifics ── */
.support-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

.support-card h2 {
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  font-size: 18px;
}

.support-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
}

.support-item:last-child {
  border-bottom: none;
}

.support-label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 100px;
  flex-shrink: 0;
}

.support-value {
  color: var(--text-secondary);
}

.support-value a {
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.support-value a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── FAQ Accordion ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-list details[open] {
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  content: '−';
  color: var(--primary);
}

.faq-list details p {
  padding: 0 20px 16px;
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Footer ── */
.legal-footer {
  border-top: 1px solid var(--border-light);
  background: var(--surface);
  padding: 32px 24px;
  text-align: center;
}

.legal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.legal-footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.legal-footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-footer-links a:hover {
  color: var(--primary);
}

.legal-footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .legal-main {
    padding: 32px 20px 60px;
  }

  .legal-main h1 {
    font-size: 24px;
  }

  .legal-main h2 {
    font-size: 18px;
    margin-top: 32px;
  }

  .support-card {
    padding: 24px 20px;
  }

  .support-item {
    flex-direction: column;
    gap: 4px;
  }

  .legal-header-inner {
    padding: 0 16px;
    height: 48px;
  }

  .legal-header-logo {
    font-size: 18px;
  }
}
