html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #fbf6ee;
  color: #2f2a24;
  line-height: 1.8;
}

body {
  margin: 0;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.4;
}

h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

p {
  margin: 0 0 16px;
}

a {
  color: #8a4b18;
}

a:hover {
  color: #5f320d;
}

.box {
  border: 1px solid #e6dccd;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.box + .box {
  margin-top: 20px;
}

.box h2:not(:first-child) {
  margin-top: 28px;
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin: 0 0 6px;
}

.faq-list {
  margin: 0;
}

.faq-list dt {
  margin-top: 18px;
  font-weight: 700;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 4px 0 0;
}

.mail-link {
  font-weight: 700;
}

.date {
  color: #6b6258;
}

.policy-link {
  margin-top: 24px;
}

footer {
  margin-top: 40px;
  color: #6b6258;
  font-size: 14px;
}

@media (max-width: 600px) {
  .container {
    padding: 28px 16px;
  }

  h1 {
    font-size: 24px;
  }

  .box {
    padding: 18px;
  }
}

.star-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 12%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 42%, rgba(198, 221, 255, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 70%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 86%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
    linear-gradient(180deg, #081226 0%, #102a4c 54%, #07111f 100%);
  background-attachment: fixed;
  color: #f5f8ff;
}

.star-page a {
  color: #b9dcff;
}

.star-page a:hover {
  color: #ffffff;
}

.star-container {
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px;
}

.star-header {
  margin-bottom: 24px;
}

.app-name {
  margin: 0 0 10px;
  color: #b9c8dd;
  font-size: 14px;
  font-weight: 700;
}

.star-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.35;
}

.subtitle {
  margin: 10px 0 0;
  color: #dbe8ff;
  font-size: 20px;
  font-weight: 700;
}

.star-page .date {
  margin-top: 16px;
  color: #b9c8dd;
}

.star-panel {
  border: 1px solid rgba(205, 224, 255, 0.22);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  padding: 26px;
}

.star-panel + .star-panel {
  margin-top: 18px;
}

.star-panel h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 19px;
}

.star-panel h2:not(:first-child) {
  margin-top: 30px;
}

.star-panel p:last-child {
  margin-bottom: 0;
}

.contact-address {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.star-faq {
  margin: 0;
}

.star-faq dt {
  border-top: 1px solid rgba(205, 224, 255, 0.18);
  margin: 0;
  padding-top: 18px;
  color: #ffffff;
  font-weight: 700;
}

.star-faq dt:first-child {
  border-top: 0;
  padding-top: 0;
}

.star-faq dd {
  margin: 6px 0 18px;
  color: #e4edf8;
}

.star-faq dd:last-child {
  margin-bottom: 0;
}

.star-link {
  margin-top: 24px;
}

.star-footer {
  margin-top: 40px;
  color: #b9c8dd;
  font-size: 14px;
}

.legal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.legal-home {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.language-switcher {
  display: inline-flex;
  border: 1px solid rgba(205, 224, 255, 0.3);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.64);
  padding: 3px;
}

.language-switcher button {
  min-width: 68px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #dbe8ff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 7px 12px;
}

.language-switcher button[aria-pressed="true"] {
  background: #d7eaff;
  color: #081226;
}

.language-switcher button:focus-visible,
.toc a:focus-visible,
.legal-nav a:focus-visible,
.legal-home:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.official-note {
  margin: 14px 0 0;
  color: #b9c8dd;
  font-size: 14px;
}

.toc {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 36px;
}

.toc li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.legal-section {
  scroll-margin-top: 20px;
}

.legal-section + .legal-section {
  border-top: 1px solid rgba(205, 224, 255, 0.18);
  margin-top: 28px;
  padding-top: 28px;
}

.legal-section h2 {
  font-size: 21px;
}

.legal-section h3 {
  margin: 22px 0 8px;
  color: #ffffff;
  font-size: 17px;
}

.legal-section p,
.legal-section li {
  color: #e4edf8;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
}

.legal-nav a {
  font-weight: 700;
}

.legal-list {
  margin-bottom: 0;
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.legal-details {
  margin: 0;
}

.legal-details-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  border-top: 1px solid rgba(205, 224, 255, 0.18);
  padding: 16px 0;
}

.legal-details-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-details-row:last-child {
  padding-bottom: 0;
}

.legal-details dt {
  color: #ffffff;
  font-weight: 700;
}

.legal-details dd {
  margin: 0;
  color: #e4edf8;
}

.legal-details dd p:last-child {
  margin-bottom: 0;
}

.placeholder {
  color: #ffd69f;
  font-weight: 700;
}

.language-content[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .star-container {
    padding: 32px 16px;
  }

  .star-header h1 {
    font-size: 26px;
  }

  .subtitle {
    font-size: 18px;
  }

  .star-panel {
    padding: 20px;
  }

  .legal-toolbar {
    align-items: flex-start;
  }

  .toc {
    columns: 1;
  }

  .legal-details-row {
    display: block;
  }

  .legal-details dt {
    margin-bottom: 5px;
  }
}
