.terms-page {
  width: min(calc(100% - 32px), 960px);
  margin: clamp(20px, 4vw, 56px) auto 56px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.58;
}

.terms-header, .terms-toc, .terms-content {
  padding: clamp(18px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.terms-header {
  border-top: 4px solid #ad060a;
  background: #fff8ed;
}

.terms-header h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.1;
}

.terms-page h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
}

.terms-page p { margin: 0 0 13px; }
.terms-page p:last-child { margin-bottom: 0; }
.terms-header p { margin-top: 12px; max-width: 65ch; }
.terms-toc, .terms-content { margin-top: 16px; }
.terms-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 21px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.terms-toc a { display: inline-block; padding: 6px 0; }
.terms-page a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.terms-page a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.terms-content section { scroll-margin-top: 110px; }
.terms-content section + section { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 24px; }

.privacy-content h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.privacy-content .cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.privacy-content .case {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf5;
}
.privacy-content .note {
  padding: 14px 16px;
  border-inline-start: 3px solid #ad060a;
  background: #fff8ed;
}
.privacy-content code { overflow-wrap: anywhere; }

.cooking-measures table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  text-align: start;
}
.cooking-measures caption { padding-bottom: 6px; text-align: start; font-weight: 700; }
.cooking-measures th, .cooking-measures td {
  border-bottom: 1px solid var(--line);
  padding: 7px clamp(5px, 1.5vw, 14px);
  text-align: start;
}
.cooking-measures thead { background: #fff8ed; }
.cooking-measures td { white-space: nowrap; }

@media (max-width: 560px) {
  .terms-toc ul { display: grid; gap: 0; }
  .terms-toc a { min-height: 36px; }
  .privacy-content .cases { grid-template-columns: minmax(0, 1fr); }
}
