.legal-main {
  max-width: 768px;
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  overflow-x: clip;
}

.legal-title {
  position: relative;
  padding: 56px 0 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.legal-title::before {
  content: '';
  position: absolute;
  top: 0;
  right: -40px;
  width: 340px;
  height: 240px;
  background: url('assets/art/wash-peach.webp') center / contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.legal-title::after {
  content: '';
  position: absolute;
  top: 28px;
  right: 8px;
  width: 132px;
  height: 176px;
  background: url('assets/art/sprig-a.webp') center / contain no-repeat;
  pointer-events: none;
}

.legal-title > * { position: relative; z-index: 1; }

.legal-title h1 {
  font-size: 52px;
  margin: 12px 0 14px;
  max-width: 520px;
}

.legal-updated {
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-content {
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.legal-content h2 {
  font-size: 27px;
  margin: 56px 0 16px;
  scroll-margin-top: 24px;
}

.legal-content h3 {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 28px 0 8px;
}

.legal-content p { margin-bottom: 16px; }

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content li { margin-bottom: 10px; }

.legal-content li::marker { color: var(--peach); }

.legal-content strong { font-weight: 600; }

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-content a:hover { text-decoration-thickness: 2px; }

.legal-lead {
  font-size: 18px;
  line-height: 1.7;
}

.legal-summary {
  padding: 28px 28px 20px;
  margin: 32px 0 28px;
}

.legal-content .legal-summary h2 {
  font-size: 22px;
  margin: 8px 0 16px;
}

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

.legal-summary li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}

.legal-summary li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--peach);
}

.legal-notice {
  background: var(--peach-soft);
  border: 1px solid var(--peach-light);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 24px 0;
}

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

.legal-notice-title {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
}

.legal-table-card {
  margin: 24px 0;
  overflow: hidden;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.legal-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--paper);
}

.legal-table tbody th {
  font-weight: 600;
  width: 24%;
}

.legal-table tbody td:nth-child(2) { width: 30%; }

.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td { border-bottom: 0; }

.legal-address {
  font-style: normal;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .legal-title { padding: 32px 0 28px; margin-bottom: 28px; }

  .legal-title::before { width: 220px; height: 160px; right: -24px; opacity: 0.45; }

  .legal-title::after { width: 72px; height: 96px; top: 12px; right: 0; }

  .legal-title h1 { font-size: 38px; max-width: 260px; }

  .legal-lead { font-size: 17px; }

  .legal-content h2 { font-size: 23px; margin-top: 44px; }

  .legal-summary { padding: 22px 20px 14px; }

  .legal-notice { padding: 20px; }

  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

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

  .legal-table tbody th,
  .legal-table tbody td:nth-child(2) { width: auto; }

  .legal-table tr {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }

  .legal-table tbody tr:last-child { border-bottom: 0; }

  .legal-table th,
  .legal-table td {
    padding: 0;
    border-bottom: 0;
  }

  .legal-table tbody th {
    font-family: var(--display);
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .legal-table td + td { margin-top: 10px; }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2px;
  }
}

@media (max-width: 360px) {
  .legal-main { padding-left: 16px; padding-right: 16px; }

  .legal-title h1 { font-size: 34px; }
}
