/* Scoped Terms & Conditions CSS
   Add class="terms-page" to the terms page wrapper or to the <body> on the terms page.
   This prevents shared names like .hero, .section, .tab, .sidebar, and .content
   from clashing with the home page CSS.
*/

.terms-page {
      --mustard: #f5b301;
      --mustard-dark: #d99a00;
      --black: #111111;
      --soft-black: #242424;
      --gray: #6b6b6b;
      --light-gray: #f6f6f3;
      --border: #e8e5dc;
      --white: #ffffff;
      --shadow: 0 20px 60px rgba(17, 17, 17, 0.08);
      --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.06);
      --radius-lg: 28px;
      --radius-md: 18px;
      --radius-sm: 12px;
    }

    .terms-page * {
      box-sizing: border-box;
    }

    .terms-page {
      scroll-behavior: smooth;
    }

    .terms-page {
      margin: 0;
      font-family: "Inter", Arial, sans-serif;
      background:
        radial-gradient(circle at top left, rgba(245, 179, 1, 0.16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfbf8 42%, #ffffff 100%);
      color: var(--black);
    }

    .terms-page a {
      color: inherit;
    }

    .terms-page .page-shell {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
    }

    .terms-page .hero {
      padding: 70px 0 34px;
      position: relative;
      overflow: hidden;
    }

    .terms-page .hero-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 32px;
      align-items: stretch;
    }

    .terms-page .hero-copy {
      background: rgba(255, 255, 255, 0.82);
      border: 1px solid rgba(232, 229, 220, 0.9);
      border-radius: var(--radius-lg);
      padding: clamp(28px, 5vw, 54px);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
    }

    .terms-page .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 22px;
      padding: 9px 14px;
      border-radius: 999px;
      background: rgba(245, 179, 1, 0.14);
      color: var(--black);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .terms-page .eyebrow-dot {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: var(--mustard);
      box-shadow: 0 0 0 6px rgba(245, 179, 1, 0.18);
    }

    .terms-page h1 {
      margin: 0;
      max-width: 760px;
      font-size: clamp(33px, 7vw, 58px);
      line-height: 0.95;
      letter-spacing: -0.065em;
      font-weight: 800;
      color: black;
    }

    .terms-page h1 span {
      color: var(--mustard);
    }

    .terms-page .hero-copy p {
      max-width: 680px;
      margin: 22px 0 0;
      color: var(--gray);
      font-size: 17px;
      line-height: 1.75;
    }

    .terms-page .hero-card {
      position: relative;
      min-height: 100%;
      border-radius: var(--radius-lg);
      background: var(--black);
      color: var(--white);
      padding: 34px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .terms-page .hero-card::before {
      content: "";
      position: absolute;
      inset: auto -70px -90px auto;
      width: 230px;
      height: 230px;
      border-radius: 50%;
      background: var(--mustard);
      opacity: 0.95;
    }

    .terms-page .hero-card::after {
      content: "";
      position: absolute;
      inset: 24px 24px auto auto;
      width: 68px;
      height: 68px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.22);
      transform: rotate(10deg);
    }

    .terms-page .hero-card-content {
      position: relative;
      z-index: 1;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 15px;
    }

    .terms-page .meta-label {
      color: rgba(255,255,255,0.58);
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .terms-page .meta-value {
      margin-top: 8px;
      font-size: 20px;
      font-weight: 700;
    }

    .terms-page .notice {
      padding: 22px;
      border: 1px solid rgba(255,255,255,0.13);
      border-radius: 20px;
      background: rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.8);
      line-height: 1.65;
      font-size: 14px;
    }

    .terms-page .tabs-wrap {
        position: sticky;
      top: 100px;
      z-index: 10;
      padding: 14px 0;
      background: rgba(255,255,255,0.82);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(232, 229, 220, 0.72);
    }

    .terms-page .tabs {
      display: flex;
      gap: 12px;
      align-items: center;
      justify-content: center;
    }

    .terms-page .tab {
      border: 1px solid var(--border);
      background: var(--white);
      color: var(--gray);
      padding: 13px 20px;
      border-radius: 999px;
      cursor: pointer;
      font-family: inherit;
      font-size: 14px;
      font-weight: 800;
      transition: all 0.22s ease;
      box-shadow: 0 4px 18px rgba(17,17,17,0.04);
    }

    .terms-page .tab:hover {
      transform: translateY(-1px);
      color: var(--black);
      border-color: rgba(245,179,1,0.65);
    }

    .terms-page .tab.active {
      background: var(--mustard);
      border-color: var(--mustard);
      color: var(--black);
      box-shadow: 0 14px 30px rgba(245,179,1,0.26);
    }

    .terms-page .terms-area {
      padding: 34px 0 86px;
    }

    .terms-page .tab-content.hidden {
      display: none;
    }

    .terms-page .layout {
      display: grid;
      grid-template-columns: 245px minmax(0, 1fr);
      gap: 32px;
      align-items: start;
    }

    .terms-page .sidebar {
      position: sticky;
      top: 190px;
      align-self: start;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 22px;
      padding: 14px;
      box-shadow: var(--shadow-soft);
    }

    .terms-page .sidebar-title {
      padding: 8px 10px 12px;
      color: var(--black);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .terms-page .sidebar a {
      display: block;
      padding: 11px 12px;
      border-radius: 12px;
      color: var(--gray);
      text-decoration: none;
      font-size: 14px;
      font-weight: 700;
      transition: all 0.2s ease;
    }

    .terms-page .sidebar a:hover,
.terms-page .sidebar a.active {
      background: rgba(245,179,1,0.16);
      color: var(--black);
    }

    .terms-page .content {
      min-width: 0;
    }

    .terms-page .intro-card {
      margin-bottom: 22px;
      padding: 28px;
      border-radius: var(--radius-md);
      background: var(--white);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
    }

    .terms-page .intro-card h2 {
      margin: 0 0 10px;
      font-size: clamp(24px, 3vw, 36px);
      letter-spacing: -0.04em;
    }

    .terms-page .intro-card p {
      margin: 0;
      color: var(--gray);
      line-height: 1.75;
      font-size: 15.5px;
    }

    .terms-page .section {
      position: relative;
      margin: 15px 0px;
      padding: 28px;
      border-radius: var(--radius-md);
      background: var(--white);
      border: 1px solid rgba(232,229,220,0.85);
      box-shadow: 0 8px 26px rgba(17, 17, 17, 0.04);
      overflow: hidden;
    }

    .terms-page .section::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 5px;
      height: 100%;
      background: var(--mustard);
    }

    .terms-page .section h3 {
      margin: 0 0 14px;
      color: var(--black);
      font-size: 21px;
      line-height: 1.25;
      letter-spacing: -0.025em;
    }

    .terms-page .section p {
      margin: 0 0 14px;
      color: var(--gray);
      font-size: 15.5px;
      line-height: 1.78;
    }

    .terms-page .section p:last-child {
      margin-bottom: 0;
    }

    .terms-page .section ul {
      margin: 12px 0 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 10px;
    }

    .terms-page .section li {
      position: relative;
      padding-left: 24px;
      color: var(--gray);
      font-size: 15.5px;
      line-height: 1.65;
    }

    .terms-page .section li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 10px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--mustard);
      box-shadow: 0 0 0 4px rgba(245,179,1,0.15);
    }

    .terms-page .legal-note {
      margin-top: 26px;
      padding: 20px 22px;
      border-radius: 18px;
      background: #111;
      color: rgba(255,255,255,0.78);
      font-size: 14px;
      line-height: 1.65;
    }

    .terms-page .legal-note strong {
      color: var(--mustard);
    }

    .terms-page .footer-strip {
      border-top: 1px solid var(--border);
      padding: 28px 0;
      color: var(--gray);
      font-size: 14px;
      text-align: center;
      background: var(--white);
    }

    @media (max-width: 980px) {
      .terms-page .sidebar a {
        padding: 11px 14px;
        border-radius: 999px;
        color: var(--white);
        background: var(--black);
        border: 1px solid var(--black);
        white-space: nowrap;
        flex-shrink: 0;
      }

      .terms-page .sidebar a:hover,
.terms-page .sidebar a.active {
        background: var(--mustard);
        color: var(--black);
        border-color: var(--mustard);
      }

      .terms-page .hero-grid,
.terms-page .layout {
        grid-template-columns: 1fr;
      }

      .terms-page .hero {
        padding-top: 42px;
      }

      .terms-page .sidebar {
        position: relative;
        top: 0;
        z-index: 9;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        border-radius: 18px;
      }

      .terms-page .sidebar::-webkit-scrollbar {
        display: none;
      }

      .terms-page .sidebar-title {
        display: none;
      }

      .terms-page .sidebar a {
        white-space: nowrap;
      }

      .terms-page .tabs-wrap {
        position:relative;
        top: 0;
        z-index: 10;
        padding: 14px 0;
        background: rgba(255,255,255,0.82);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(232, 229, 220, 0.72);
        }
    }

    @media (max-width: 640px) {
      .terms-page .page-shell {
        width: min(100% - 24px, 1180px);
      }

      .terms-page .hero-copy,
.terms-page .hero-card,
.terms-page .intro-card,
.terms-page .section {
        padding: 22px;
      }

      .terms-page .tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 3px;
      }

      .terms-page .tab {
        white-space: nowrap;
      }
    }