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

    :root {
      --green-dark: #a30d25;
      --green: #c8102e;
      --green-light: #c8102e;
      --green-fade: rgba(200, 16, 46, 0.08);
      --green-fade-2: rgba(200, 16, 46, 0.14);
      --text: #000;
      --text-secondary: #555;
      --text-muted: #999;
      --bg: #fff;
      --surface: #fafafa;
      --border: #f0f0f0;
      --border-mid: #e0e0e0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: var(--bg);
      color: var(--text);
      font-size: 15px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    /* HEADER */
    header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
    }

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

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--text);
    }

    .logo img {
      width: 28px;
      height: 28px;
      border-radius: 6px;
    }

    .logo span {
      font-size: 17px;
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .header-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
    }

    /* HERO */
    .hero {
      border-bottom: 1px solid var(--border);
      padding: 48px 20px 40px;
      text-align: center;
    }

    .hero h1 {
      font-size: clamp(24px, 5vw, 32px);
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.2;
      margin-bottom: 8px;
    }

    .hero p {
      color: var(--text-muted);
      font-size: 14px;
    }

    .hero-meta {
      display: flex;
      justify-content: center;
      gap: 16px;
      margin-top: 16px;
      flex-wrap: wrap;
    }

    .hero-meta span {
      font-size: 12px;
      font-weight: 500;
      color: var(--text-muted);
    }

    /* TOC */
    .toc-wrap {
      max-width: 680px;
      margin: 0 auto;
      padding: 24px 20px 0;
    }

    .toc {
      background: var(--surface);
      border-radius: 12px;
      padding: 16px 18px;
      border: 1px solid var(--border);
    }

    .toc-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      margin-bottom: 10px;
    }

    .toc-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 2px;
    }

    .toc-grid a {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 8px;
      border-radius: 8px;
      text-decoration: none;
      color: var(--text-secondary);
      font-size: 13px;
      font-weight: 500;
      transition: background .15s, color .15s;
    }

    .toc-grid a:hover {
      background: var(--green-fade);
      color: var(--green-dark);
    }

    .toc-num {
      width: 20px;
      height: 20px;
      border-radius: 6px;
      background: var(--green-fade-2);
      color: var(--green);
      font-size: 11px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    /* CONTENT */
    .content {
      max-width: 680px;
      margin: 0 auto;
      padding: 0 20px 80px;
    }

    section {
      padding: 32px 0;
      border-bottom: 1px solid var(--border);
    }

    section:last-of-type {
      border-bottom: none;
    }

    section h2 {
      font-size: 17px;
      font-weight: 700;
      margin-bottom: 14px;
      color: var(--text);
      letter-spacing: -0.01em;
    }

    .section-num {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border-radius: 7px;
      background: var(--green);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      margin-right: 10px;
      vertical-align: middle;
    }

    section p {
      color: var(--text-secondary);
      font-size: 14px;
      margin-bottom: 10px;
      line-height: 1.7;
    }

    section p:last-child {
      margin-bottom: 0;
    }

    section p strong {
      color: var(--text);
      font-weight: 600;
    }

    section a {
      color: #c8102e;
      font-weight: 500;
    }

    .callout {
      border-radius: 10px;
      padding: 12px 14px;
      margin: 14px 0;
      font-size: 13px;
      font-weight: 500;
      line-height: 1.6;
    }

    .callout strong {
      font-weight: 700;
    }

    .callout-green {
      background: var(--green-fade);
      border-left: 3px solid var(--green);
      color: var(--green-dark);
    }

    .callout-warn {
      background: #FFF8EE;
      border-left: 3px solid #E8A020;
      color: #6B4A00;
    }

    .callout-info {
      background: #F0F4FF;
      border-left: 3px solid #5B8DEF;
      color: #1A3A7A;
    }

    .label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--green-light);
      margin: 16px 0 8px;
    }

    ul.list {
      list-style: none;
      padding: 0;
      margin: 8px 0;
    }

    ul.list li {
      position: relative;
      padding: 8px 0 8px 16px;
      border-bottom: 1px solid var(--border);
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    ul.list li:last-child {
      border-bottom: none;
    }

    ul.list li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 16px;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--green);
    }

    ul.list li strong {
      color: var(--text);
      font-weight: 600;
    }

    /* TABLE */
    .table-wrap {
      overflow-x: auto;
      margin: 14px 0;
      border-radius: 10px;
      border: 1px solid var(--border);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }

    thead th {
      background: var(--green-dark);
      color: #fff;
      padding: 10px 14px;
      text-align: left;
      font-weight: 600;
      font-size: 12px;
    }

    tbody td {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border);
      color: var(--text-secondary);
      line-height: 1.5;
    }

    tbody tr:last-child td {
      border-bottom: none;
    }

    .badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
    }

    .badge-yes {
      background: var(--green-fade-2);
      color: var(--green-dark);
    }

    .badge-no {
      background: #f0f0f0;
      color: #888;
    }

    .badge-opt {
      background: #F0F4FF;
      color: #1A4A7A;
    }

    /* CONTACT FOOTER */
    .contact-bar {
      background: var(--surface);
      border-top: 1px solid var(--border);
      padding: 32px 20px;
      text-align: center;
    }

    .contact-bar p {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 12px;
    }

    .contact-bar a {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 10px 24px;
      border-radius: 0;
      background: #c8102e;
      color: #fff;
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
    }

    .contact-bar a:hover {
      background: #a30d25;
    }

    footer {
      text-align: center;
      padding: 16px 20px;
      font-size: 12px;
      color: var(--text-muted);
      border-top: 1px solid var(--border);
    }

    footer a {
      color: var(--green);
      text-decoration: none;
    }

    @media (max-width: 520px) {
      .hero {
        padding: 36px 16px 28px;
      }

      .hero h1 {
        font-size: 24px;
      }

      .toc-grid {
        grid-template-columns: 1fr;
      }

      .header-label {
        display: none;
      }
    }

body.hg-legal > header,
body.hg-legal > .hero,
body.hg-legal > .toc-wrap,
body.hg-legal > .content,
body.hg-legal > .contact-bar,
body.hg-legal > footer { grid-column: 1 / -1; width: 100%; }
.callout a { color: inherit; font-weight: 700; text-decoration: none; }
