* {
  box-sizing: border-box;
}

html {
  --brand-display-font: "Yu Mincho", "Hiragino Mincho ProN",
    "Hiragino Mincho Pro", "Noto Serif JP", "Noto Serif CJK JP", Georgia,
    "Times New Roman", serif;
  --brand-reading-font: "Yu Mincho", "Hiragino Mincho ProN",
    "Hiragino Mincho Pro", "Noto Serif JP", "Noto Serif CJK JP", Georgia,
    serif;
  background: #f7f4ed;
  color: #1b2430;
  font-family: var(--brand-reading-font);
}

body {
  margin: 0;
}

button,
input,
select,
textarea,
optgroup,
option {
  font-family: var(--brand-reading-font);
}

a {
  color: #8a6518;
}

.site-header {
  border-bottom: 1px solid rgba(214, 164, 71, 0.2);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 8px 28px rgba(8, 20, 38, 0.045);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1380px;
  height: 104px;
  margin: auto;
  padding: 0 22px;
}

.site-logo {
  display: block;
  width: 340.2px;
  height: 79.2px;
  flex: 0 0 auto;
  background: url("assets/novelight-header-logo.webp") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
}

.site-back {
  color: #5d6671;
  font-family: var(--brand-display-font);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.site-back:hover {
  color: #8a6518;
}

.legal-main {
  max-width: 900px;
  margin: auto;
  padding: 48px 22px 80px;
}

.legal-hero {
  margin-bottom: 24px;
}

.legal-kicker {
  margin-bottom: 8px;
  color: #8a6518;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.legal-hero h1,
.legal-card h2,
.legal-card h3 {
  color: #1b2430;
  font-family: var(--brand-display-font);
}

.legal-hero h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.3;
}

.legal-lead,
.legal-meta {
  color: #69717d;
  line-height: 1.8;
}

.legal-meta {
  font-size: 15px;
}

.legal-card {
  margin-top: 18px;
  padding: 30px;
  border: 1px solid #ded8cb;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 4px 16px rgba(8, 20, 38, 0.055);
}

.legal-card h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.legal-card h3 {
  margin: 22px 0 10px;
  font-size: 17px;
}

.legal-card p,
.legal-card li,
.legal-table {
  font-size: 16px;
  line-height: 1.85;
}

.legal-card ul,
.legal-card ol {
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 7px;
}

.legal-note {
  padding: 14px 16px;
  border: 1px solid #ead8a9;
  border-radius: 12px;
  background: #fff8e6;
  color: #69531e;
  font-size: 15px;
  line-height: 1.75;
}

.legal-warning {
  padding: 14px 16px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 15px;
  line-height: 1.75;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #e6dfd2;
  vertical-align: top;
  text-align: left;
}

.legal-table th {
  width: 30%;
  color: #555f6b;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.legal-links a {
  padding: 9px 13px;
  border: 1px solid #ded8cb;
  border-radius: 999px;
  background: #fffdf8;
  color: #0e1d35;
  font-family: var(--brand-display-font);
  font-size: 15px;
  text-decoration: none;
}

.legal-links a:hover {
  border-color: #d6a447;
  color: #7c5b12;
}

.site-footer {
  border-top: 1px solid rgba(234, 196, 106, 0.16);
  background: #081426;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-width: 980px;
  margin: auto;
  padding: 24px 22px;
  color: #aeb7c4;
  font-size: 14px;
}

.site-footer a {
  color: #c9d0d9;
  text-decoration: none;
}

.site-footer a:hover {
  color: #eac46a;
}

/*
 * Public trust/legal pages are intentionally kept separate from the main
 * NOVELIGHT application navigation. This preserves the preregistration LP as
 * an isolated trust surface: visitors can review operator/legal/support
 * information without being routed into the unreleased main product.
 */
body.novelight-public-header-page .site-header {
  min-height: 96px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.novelight-public-header-page .site-header::before {
  width: min(320px, 72vw);
  height: 74px;
  display: block;
  content: "";
  background: url("assets/novelight-header-logo.webp") center / contain no-repeat;
}

html body.novelight-public-header-page:not(.novelight-public-dark)
  .site-header
  .header-inner,
html body.novelight-public-header-page:not(.novelight-public-dark)
  .site-header
  .public-header-inner,
html body.novelight-public-header-page:not(.novelight-public-dark)
  .site-header
  .site-header-inner {
  display: none !important;
}

body.novelight-public-header-page .legal-main a[href^="index.html"],
body.novelight-public-header-page .legal-main a[href^="search.html"],
body.novelight-public-header-page .legal-main a[href^="pricing.html"],
body.novelight-public-header-page .legal-main a[href^="ranking.html"],
body.novelight-public-header-page .legal-main a[href^="login.html"],
body.novelight-public-header-page .legal-main a[href^="signup.html"],
body.novelight-public-header-page .legal-main a[href^="author-home.html"],
body.novelight-public-header-page .legal-main a[href^="reader-home.html"],
body.novelight-public-header-page .legal-main a[href^="novel.html"],
body.novelight-public-header-page .legal-main a[href^="novels.html"] {
  display: none !important;
}

@media (min-width: 641px) and (max-width: 1180px) {
  .site-back {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    gap: 14px;
    height: 84px;
  }

  .site-logo {
    width: 262.8px;
    height: 61.2px;
  }

  .site-back {
    font-size: 20px;
  }

  .legal-main {
    padding: 34px 16px 60px;
  }

  .legal-hero h1 {
    font-size: 28px;
  }

  .legal-card {
    padding: 22px 18px;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .legal-table td {
    padding-top: 0;
  }
}
