:root {
   --smt-navy: #061d4f;
   --smt-blue: #243286;
   --smt-bright: #1767ed;
   --smt-yellow: #ffd21f;
   --smt-ink: #071a2f;
   --smt-muted: #586a7e;
   --smt-line: #d9e3ef;
   --smt-soft: #f3f7fc;
}

.sinmai-terms-page .sm-global-header { margin-bottom: 0; }

.sm-terms,
.sm-terms * { box-sizing: border-box; }

.sm-terms {
   overflow: hidden;
   color: var(--smt-ink);
   background: #fff;
}

.sm-terms-shell {
   width: min(1180px, calc(100% - 48px));
   margin-inline: auto;
}

.sm-terms-hero {
   position: relative;
   isolation: isolate;
   padding: 90px 0 98px;
   overflow: hidden;
   background:
      radial-gradient(circle at 84% 20%, rgba(23,103,237,.13), transparent 28%),
      linear-gradient(126deg, #fff 0 61%, #eff5ff 61% 100%);
}

.sm-terms-hero::before,
.sm-terms-hero::after {
   content: "";
   position: absolute;
   z-index: -1;
   pointer-events: none;
}

.sm-terms-hero::before {
   top: -80px;
   right: 12%;
   width: 86px;
   height: 470px;
   transform: rotate(34deg);
   background: rgba(36,50,134,.06);
   box-shadow: 92px 0 0 rgba(23,103,237,.09), 184px 0 0 rgba(255,210,31,.17);
}

.sm-terms-hero::after {
   left: 0;
   bottom: 0;
   width: 100%;
   height: 4px;
   background: linear-gradient(90deg, var(--smt-yellow) 0 18%, var(--smt-blue) 18% 100%);
}

.sm-terms-hero__ghost {
   position: absolute;
   z-index: -1;
   right: -25px;
   bottom: -24px;
   color: transparent;
   font-family: "Archivo Black", sans-serif;
   font-size: clamp(130px, 19vw, 280px);
   letter-spacing: -.08em;
   line-height: .8;
   -webkit-text-stroke: 1px rgba(6,29,79,.045);
   user-select: none;
}

.sm-terms-hero__grid {
   position: relative;
   z-index: 1;
   display: grid;
   grid-template-columns: minmax(0, 1fr) 330px;
   align-items: center;
   gap: 74px;
}

.sm-terms-breadcrumbs {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: 9px;
   margin-bottom: 32px;
   color: #6b7b90;
   font-size: 11px;
   font-weight: 800;
   letter-spacing: .04em;
   text-transform: uppercase;
}

.sm-terms-breadcrumbs a {
   color: var(--smt-blue);
   text-decoration: none;
}

.sm-terms-breadcrumbs a:hover { color: var(--smt-bright); }

.sm-terms-kicker {
   display: flex;
   align-items: center;
   gap: 12px;
   margin: 0 0 18px;
   color: var(--smt-blue);
   font-size: 11px;
   font-weight: 900;
   letter-spacing: .17em;
   line-height: 1.4;
   text-transform: uppercase;
}

.sm-terms-kicker > span {
   width: 34px;
   height: 3px;
   background: linear-gradient(90deg, var(--smt-yellow) 0 40%, var(--smt-blue) 40%);
}

.sm-terms-hero h1 {
   max-width: 760px;
   margin: 0 0 26px;
   color: var(--smt-navy);
   font-family: "Archivo Black", sans-serif;
   font-size: clamp(55px, 7vw, 96px);
   letter-spacing: -.065em;
   line-height: .91;
   text-transform: uppercase;
}

.sm-terms-hero h1 span {
   display: block;
   color: var(--smt-blue);
}

.sm-terms-hero__intro {
   max-width: 690px;
   margin: 0;
   color: var(--smt-muted);
   font-family: Arial, sans-serif;
   font-size: 18px;
   line-height: 1.65;
}

.sm-terms-actions {
   display: flex;
   flex-wrap: wrap;
   gap: 13px;
   margin-top: 33px;
}

.sm-terms-button {
   min-height: 53px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   padding: 0 23px;
   border: 2px solid var(--smt-blue);
   border-radius: 9px;
   font-family: "Archivo Black", sans-serif;
   font-size: 11px;
   letter-spacing: .035em;
   text-decoration: none;
   text-transform: uppercase;
   transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.sm-terms-button svg,
.sm-terms-index a svg {
   width: 21px;
   height: 21px;
   fill: none;
   stroke: currentColor;
   stroke-width: 1.9;
   stroke-linecap: round;
   stroke-linejoin: round;
}

.sm-terms-button--primary {
   background: var(--smt-blue);
   color: #fff;
   box-shadow: 0 12px 28px rgba(36,50,134,.22);
}

.sm-terms-button--secondary {
   border-color: var(--smt-yellow);
   background: var(--smt-yellow);
   color: var(--smt-navy);
}

.sm-terms-button:hover,
.sm-terms-button:focus-visible {
   transform: translateY(-3px);
}

.sm-terms-button--primary:hover,
.sm-terms-button--primary:focus-visible { color: #fff; background: #172875; }
.sm-terms-button--secondary:hover,
.sm-terms-button--secondary:focus-visible { color: var(--smt-navy); background: #ffe15d; }

.sm-terms-hero__card {
   position: relative;
   padding: 31px;
   border: 1px solid rgba(255,255,255,.9);
   border-radius: 22px;
   background: linear-gradient(145deg, var(--smt-navy), #173f8e);
   color: #fff;
   box-shadow: 0 26px 58px rgba(6,29,79,.25);
}

.sm-terms-hero__card::before {
   content: "";
   position: absolute;
   top: 0;
   right: 30px;
   width: 72px;
   height: 5px;
   border-radius: 0 0 8px 8px;
   background: var(--smt-yellow);
}

.sm-terms-hero__icon {
   width: 62px;
   height: 62px;
   margin-bottom: 22px;
   border-radius: 16px;
   background: var(--smt-yellow);
   color: var(--smt-navy);
   display: grid;
   place-items: center;
}

.sm-terms-hero__icon svg {
   width: 32px;
   height: 32px;
   fill: none;
   stroke: currentColor;
   stroke-width: 1.8;
   stroke-linecap: round;
   stroke-linejoin: round;
}

.sm-terms-hero__card > p {
   margin: 0 0 5px;
   color: var(--smt-yellow);
   font-size: 10px;
   font-weight: 900;
   letter-spacing: .15em;
   text-transform: uppercase;
}

.sm-terms-hero__card > strong {
   display: block;
   margin-bottom: 24px;
   font-family: "Archivo Black", sans-serif;
   font-size: 22px;
   line-height: 1.15;
   text-transform: uppercase;
}

.sm-terms-hero__card dl { margin: 0; }
.sm-terms-hero__card dl > div {
   display: flex;
   justify-content: space-between;
   gap: 16px;
   padding: 11px 0;
   border-top: 1px solid rgba(255,255,255,.15);
}
.sm-terms-hero__card dt,
.sm-terms-hero__card dd {
   margin: 0;
   font-family: Arial, sans-serif;
   font-size: 12px;
}
.sm-terms-hero__card dt { color: rgba(255,255,255,.65); }
.sm-terms-hero__card dd { color: #fff; font-weight: 800; text-align: right; }

.sm-terms-document {
   padding: 92px 0 104px;
   background: #fff;
}

.sm-terms-section-head {
   display: flex;
   justify-content: space-between;
   align-items: end;
   gap: 30px;
   margin-bottom: 36px;
}

.sm-terms-section-head p {
   display: flex;
   align-items: center;
   gap: 10px;
   margin: 0 0 10px;
   color: var(--smt-blue);
   font-size: 10px;
   font-weight: 900;
   letter-spacing: .17em;
   text-transform: uppercase;
}

.sm-terms-section-head p span {
   width: 28px;
   height: 3px;
   background: var(--smt-yellow);
}

.sm-terms-section-head h2 {
   max-width: 790px;
   margin: 0;
   color: var(--smt-navy);
   font-family: "Archivo Black", sans-serif;
   font-size: clamp(35px, 4.4vw, 58px);
   letter-spacing: -.045em;
   line-height: 1;
   text-transform: uppercase;
}

.sm-terms-section-head > a {
   flex: 0 0 auto;
   color: var(--smt-blue);
   font-size: 12px;
   font-weight: 900;
   text-decoration: none;
   text-transform: uppercase;
}

.sm-terms-section-head > a:hover { color: var(--smt-bright); }

.sm-terms-document__layout {
   display: grid;
   grid-template-columns: 280px minmax(0, 1fr);
   align-items: start;
   gap: 26px;
}

.sm-terms-index {
   position: sticky;
   top: 105px;
   padding: 26px 24px 24px;
   border: 1px solid var(--smt-line);
   border-radius: 18px;
   background: var(--smt-soft);
}

.sm-terms-index > p {
   margin: 0 0 17px;
   color: var(--smt-navy);
   font-family: "Archivo Black", sans-serif;
   font-size: 14px;
   text-transform: uppercase;
}

.sm-terms-index ol {
   margin: 0 0 24px;
   padding: 0;
   list-style: none;
   counter-reset: terms-index;
}

.sm-terms-index li {
   position: relative;
   min-height: 38px;
   padding: 9px 0 9px 34px;
   border-bottom: 1px solid #dce5f0;
   color: #52647a;
   counter-increment: terms-index;
   font-family: Arial, sans-serif;
   font-size: 11px;
   font-weight: 700;
   line-height: 1.35;
}

.sm-terms-index li::before {
   content: counter(terms-index, decimal-leading-zero);
   position: absolute;
   top: 9px;
   left: 0;
   color: var(--smt-blue);
   font-size: 10px;
   font-weight: 900;
}

.sm-terms-index > a {
   min-height: 46px;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   padding: 0 13px;
   border-radius: 8px;
   background: var(--smt-yellow);
   color: var(--smt-navy);
   font-size: 10px;
   font-weight: 900;
   text-align: center;
   text-decoration: none;
   text-transform: uppercase;
}

.sm-terms-index > a:hover { background: #ffe15d; color: var(--smt-navy); }

.sm-terms-viewer {
   overflow: hidden;
   border: 1px solid #cbd8e8;
   border-radius: 18px;
   background: #e9eef5;
   box-shadow: 0 20px 48px rgba(8,31,72,.12);
}

.sm-terms-viewer__bar {
   min-height: 58px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 20px;
   padding: 0 20px;
   background: var(--smt-navy);
   color: #fff;
}

.sm-terms-viewer__bar span {
   display: flex;
   align-items: center;
   gap: 9px;
   font-size: 11px;
   font-weight: 900;
   letter-spacing: .06em;
   text-transform: uppercase;
}

.sm-terms-viewer__bar i {
   width: 9px;
   height: 9px;
   border-radius: 50%;
   background: #27ce72;
   box-shadow: 0 0 0 5px rgba(39,206,114,.14);
}

.sm-terms-viewer__bar small {
   color: rgba(255,255,255,.65);
   font-size: 11px;
}

.sm-terms-viewer object {
   width: 100%;
   height: 910px;
   display: block;
   border: 0;
   background: #e9eef5;
}

.sm-terms-viewer__fallback {
   width: min(520px, calc(100% - 30px));
   margin: 70px auto;
   padding: 34px;
   border-radius: 15px;
   background: #fff;
   color: var(--smt-ink);
   text-align: center;
}

.sm-terms-viewer__fallback strong { display: block; margin-bottom: 10px; }
.sm-terms-viewer__fallback p { color: var(--smt-muted); }
.sm-terms-viewer__fallback a { color: var(--smt-blue); font-weight: 900; }

.sm-terms-help {
   padding: 62px 0;
   background:
      linear-gradient(115deg, transparent 0 73%, rgba(23,103,237,.24) 73% 76%, transparent 76%),
      var(--smt-navy);
}

.sm-terms-help__inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 35px;
}

.sm-terms-help p {
   margin: 0 0 7px;
   color: var(--smt-yellow);
   font-size: 10px;
   font-weight: 900;
   letter-spacing: .16em;
   text-transform: uppercase;
}

.sm-terms-help h2 {
   margin: 0 0 8px;
   color: #fff;
   font-family: "Archivo Black", sans-serif;
   font-size: clamp(30px, 4vw, 48px);
   line-height: 1;
   text-transform: uppercase;
}

.sm-terms-help span {
   color: rgba(255,255,255,.67);
   font-family: Arial, sans-serif;
   font-size: 14px;
}

.sm-terms-help__inner > a {
   flex: 0 0 auto;
   min-height: 54px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   padding: 0 24px;
   border-radius: 9px;
   background: var(--smt-yellow);
   color: var(--smt-navy);
   font-family: "Archivo Black", sans-serif;
   font-size: 11px;
   text-decoration: none;
   text-transform: uppercase;
}

.sm-terms-help__inner > a i { font-size: 20px; }
.sm-terms-help__inner > a:hover { background: #ffe15d; color: var(--smt-navy); }

@media (max-width: 900px) {
   .sm-terms-hero { padding: 66px 0 74px; }
   .sm-terms-hero__grid { grid-template-columns: 1fr; gap: 42px; }
   .sm-terms-hero__card { max-width: 520px; }
   .sm-terms-document__layout { grid-template-columns: 1fr; }
   .sm-terms-index { position: static; }
   .sm-terms-index ol { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 22px; }
   .sm-terms-viewer object { height: 820px; }
}

@media (max-width: 640px) {
   .sm-terms-shell { width: min(100% - 30px, 1180px); }
   .sm-terms-hero { padding: 46px 0 58px; background: linear-gradient(150deg, #fff 0 72%, #edf4ff 72%); }
   .sm-terms-breadcrumbs { margin-bottom: 24px; font-size: 9px; }
   .sm-terms-kicker { font-size: 9px; }
   .sm-terms-hero h1 { font-size: clamp(42px, 14vw, 62px); }
   .sm-terms-hero__intro { font-size: 15px; }
   .sm-terms-actions { display: grid; grid-template-columns: 1fr; }
   .sm-terms-button { width: 100%; }
   .sm-terms-hero__card { padding: 26px; }
   .sm-terms-document { padding: 62px 0 70px; }
   .sm-terms-section-head { display: block; }
   .sm-terms-section-head h2 { font-size: 34px; }
   .sm-terms-section-head > a { display: inline-block; margin-top: 17px; }
   .sm-terms-index ol { grid-template-columns: 1fr; }
   .sm-terms-viewer__bar { padding: 0 14px; }
   .sm-terms-viewer__bar small { display: none; }
   .sm-terms-viewer object { height: 72vh; min-height: 560px; }
   .sm-terms-help { padding: 49px 0; }
   .sm-terms-help__inner { display: block; }
   .sm-terms-help span { display: block; }
   .sm-terms-help__inner > a { width: 100%; margin-top: 25px; }
}
