/* =========================================================
   RYTHON TERMS & CONDITIONS
   Page-only styles. Header/footer use existing global CSS.
========================================================= */

.tc-page{
  --tc-blue:#1264f6;
  --tc-navy:#06183e;
  --tc-text:#53617a;
  --tc-border:#e2e9f4;
  --tc-green:#15a95a;
  --tc-purple:#7c3aed;
  --tc-orange:#ff8618;
  font-family:Inter,system-ui,sans-serif;
  color:var(--tc-navy);
  background:#fff;
}
.tc-page *,.tc-page *:before,.tc-page *:after{box-sizing:border-box}
.tc-container{width:min(1180px,calc(100% - 48px));margin:auto}

/* HERO */
.tc-hero{
  position:relative;overflow:hidden;color:#fff;
  background:
    radial-gradient(circle at 72% 48%,rgba(20,89,220,.24),transparent 31%),
    linear-gradient(112deg,#020d25 0%,#05183e 56%,#052b69 100%);
}
.tc-hero:before{
  content:"";position:absolute;inset:0;opacity:.15;
  background-image:radial-gradient(circle,rgba(255,255,255,.65) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(90deg,transparent 30%,#000 75%,transparent);
}
.tc-hero-grid{
  position:relative;z-index:2;min-height:500px;
  display:grid;grid-template-columns:1fr .95fr;align-items:center;gap:65px;
}
.tc-hero-copy{padding:70px 0}
.tc-kicker{
  display:block;margin-bottom:17px;color:#2d7cff;
  font-size:13px;font-weight:800;letter-spacing:.1em;
}
.tc-hero h1{
  margin:0;color:#fff;font-size:clamp(48px,5.5vw,70px);
  line-height:1.02;letter-spacing:-3px;
}
.tc-hero h1 span{color:#1767f6}
.tc-title-line{display:block;width:42px;height:3px;margin:26px 0 20px;border-radius:4px;background:#2b73f6}
.tc-hero-copy>p{max-width:525px;margin:0;color:rgba(255,255,255,.83);font-size:15px;line-height:1.8}
.tc-date-card{
  width:max-content;max-width:100%;display:flex;align-items:center;gap:15px;
  margin-top:30px;padding:14px 20px;border:1px solid rgba(91,146,255,.24);
  border-radius:10px;background:rgba(25,61,122,.4);box-shadow:0 15px 35px rgba(0,0,0,.12);
}
.tc-date-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#1165f5}
.tc-date-icon svg{width:21px}.tc-date-card div{display:grid;gap:5px}.tc-date-card strong{font-size:12px}.tc-date-card strong b{color:#3982ff}.tc-date-card span{font-size:11px;color:rgba(255,255,255,.72)}

/* HERO ART */
.tc-hero-art{position:relative;height:440px}
.tc-orbit{position:absolute;left:53%;top:50%;transform:translate(-50%,-50%);border:1px solid rgba(55,121,246,.22);border-radius:50%}
.orbit-1{width:410px;height:410px}.orbit-2{width:320px;height:320px}.orbit-3{width:230px;height:230px}
.tc-paper{
  position:absolute;z-index:3;left:50%;top:51%;width:210px;height:285px;
  transform:translate(-50%,-50%) rotate(3deg);
  padding:45px 30px;border-radius:12px 12px 35px 12px;
  color:#76809d;background:linear-gradient(145deg,#fff,#e8ebf5);
  box-shadow:0 30px 50px rgba(0,0,0,.32);
  animation:tcPaperFloat 5.5s ease-in-out infinite;
}
.tc-paper:after{
  content:"";position:absolute;right:0;top:0;width:45px;height:45px;
  border-radius:0 10px 0 25px;background:#cfd5e7;
}
.paper-title{display:block;margin-bottom:22px;color:#6b7390;font-size:18px;font-weight:800}
.paper-row{display:flex;align-items:center;gap:10px;margin:13px 0}.paper-row svg{width:20px;height:20px;color:#2d7cff;fill:#dfe9ff}.paper-row span{display:block;width:100px;height:5px;border-radius:6px;background:#c3c8d8}
.paper-sign{position:absolute;bottom:30px;left:62px;font-size:21px;font-style:italic;font-weight:700;color:#707a99}
.tc-shield{
  position:absolute;z-index:5;right:10%;bottom:25px;width:145px;height:165px;
  display:grid;place-items:center;color:#e8f0ff;filter:drop-shadow(0 20px 25px rgba(0,0,0,.3));
  animation:tcShieldFloat 5s ease-in-out infinite;
}
.tc-shield svg{width:145px;height:165px;fill:#2765e6;stroke:#8bb4ff;stroke-width:1.2}
.tc-float{position:absolute;z-index:6;display:grid;place-items:center;color:#fff;border-radius:50%;box-shadow:0 15px 25px rgba(0,0,0,.25)}
.tc-float svg{width:28px;height:28px}
.tc-scale{width:72px;height:72px;left:18%;top:35px;background:linear-gradient(145deg,#9e66ff,#6b29e7);animation:tcMini 5.7s ease-in-out infinite}
.tc-handshake{width:70px;height:70px;right:4%;top:70px;background:linear-gradient(145deg,#2edb9c,#00a76f);animation:tcMini 6.4s ease-in-out infinite reverse}
.tc-gavel{width:65px;height:65px;left:13%;bottom:45px;background:linear-gradient(145deg,#ffa23e,#ff7011);animation:tcMini 6s ease-in-out infinite}
@keyframes tcPaperFloat{50%{transform:translate(-50%,calc(-50% - 9px)) rotate(1deg)}}@keyframes tcShieldFloat{50%{transform:translateY(-8px)}}@keyframes tcMini{50%{transform:translateY(-10px)}}

/* BODY */
.tc-body{padding:32px 0 75px;background:linear-gradient(180deg,#fff,#fcfdff)}

/* PRINCIPLES */
.tc-principles{
  display:grid;grid-template-columns:repeat(4,1fr);gap:12px;
}
.tc-principles article{
  min-height:175px;padding:22px 25px;text-align:center;
  border:1px solid var(--tc-border);border-radius:10px;background:#fff;
  box-shadow:0 7px 25px rgba(15,23,42,.025);transition:.25s;
}
.tc-principles article:hover{transform:translateY(-4px);box-shadow:0 15px 35px rgba(15,23,42,.07)}
.tc-principle-icon{width:50px;height:50px;display:grid;place-items:center;margin:0 auto 16px;border-radius:50%}
.tc-principle-icon svg{width:21px}.tc-principle-icon.blue{color:var(--tc-blue);background:#e9f1ff}.tc-principle-icon.green{color:var(--tc-green);background:#e8f8ef}.tc-principle-icon.purple{color:var(--tc-purple);background:#f0e8ff}.tc-principle-icon.orange{color:var(--tc-orange);background:#fff0e2}
.tc-principles h3{margin:0 0 9px;font-size:12px}.tc-principles p{max-width:190px;margin:auto;color:var(--tc-text);font-size:10.5px;line-height:1.6}

/* LAYOUT */
.tc-layout{display:grid;grid-template-columns:235px 1fr;align-items:start;gap:38px;margin-top:45px}
.tc-sidebar{
  position:sticky;top:100px;overflow:hidden;
  border:1px solid #e6ecf6;border-radius:10px;
  background:linear-gradient(145deg,#f8faff,#fff);
}
.tc-toc{padding:24px 20px}.tc-toc h3{margin:0 0 13px;color:var(--tc-blue);font-size:12px}
.tc-toc nav{display:grid}
.tc-toc a{
  position:relative;padding:8px 10px 8px 25px;color:#27334b;
  font-size:10.5px;line-height:1.35;text-decoration:none;border-radius:6px;transition:.2s;
}
.tc-toc a:before{content:"";position:absolute;left:7px;top:12px;width:6px;height:6px;border-radius:50%;background:#176af7}
.tc-toc a:hover,.tc-toc a.active{color:var(--tc-blue);background:#e9f0ff;font-weight:700}
.tc-help{display:flex;gap:13px;padding:23px 20px;border-top:1px solid #e4eaf4}
.tc-help>span{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;color:var(--tc-blue);border-radius:50%;background:#e9f1ff}
.tc-help>span svg{width:20px}.tc-help strong{color:var(--tc-blue);font-size:11px}.tc-help p{margin:4px 0 7px;color:var(--tc-text);font-size:9.5px}.tc-help a{display:inline-flex;align-items:center;gap:5px;color:var(--tc-blue);font-size:10px;font-weight:700;text-decoration:none}.tc-help a svg{width:11px}

/* ACCORDION */
.tc-terms{min-width:0}
.tc-section{
  margin-bottom:8px;overflow:hidden;scroll-margin-top:110px;
  border:1px solid var(--tc-border);border-radius:8px;background:#fff;transition:.25s;
}
.tc-section.tc-open{border-color:#cfe0ff;box-shadow:0 7px 22px rgba(18,100,246,.04)}
.tc-section-title{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:14px 18px;color:var(--tc-navy);
  font:700 12px/1.4 Inter,sans-serif;text-align:left;border:0;background:#fff;cursor:pointer;
}
.tc-section.tc-open .tc-section-title{color:var(--tc-blue)}
.tc-section-title svg{width:15px;height:15px;flex:0 0 auto}
.tc-section-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows .32s ease}
.tc-section-inner{min-height:0;overflow:hidden;padding:0 18px;transition:padding .32s ease}
.tc-section.tc-open .tc-section-content{grid-template-rows:1fr}
.tc-section.tc-open .tc-section-inner{padding:0 18px 18px}
.tc-section-inner>p{margin:0;color:var(--tc-text);font-size:11.5px;line-height:1.75}
.tc-section-inner a{color:var(--tc-blue)}
.tc-important{
  display:flex;align-items:flex-start;gap:15px;margin-top:17px;padding:15px 18px;
  border-radius:7px;background:linear-gradient(90deg,#f0f5ff,#f7f9ff);
}
.tc-important>svg{width:21px;height:21px;flex:0 0 21px;padding:4px;color:#fff;fill:var(--tc-blue);stroke:#fff;border-radius:50%;background:var(--tc-blue)}
.tc-important p{margin:0;color:#33405a;font-size:10.5px;line-height:1.55}.tc-important strong{color:var(--tc-navy)}

/* AGREEMENT */
.tc-agreement{
  position:relative;overflow:hidden;display:grid;
  grid-template-columns:160px 1fr auto;align-items:center;gap:25px;
  margin-top:45px;padding:28px 45px;border:1px solid #d5e3fb;border-radius:10px;
  background:linear-gradient(110deg,#f6faff,#fff,#f7faff);
}
.tc-agreement:before{
  content:"";position:absolute;left:55px;width:115px;height:115px;border:1px dashed #9fc2ff;border-radius:50%;
}
.tc-agreement:after{
  content:"";position:absolute;right:0;top:0;width:150px;height:100%;
  opacity:.3;background-image:radial-gradient(circle,#6da1ff 1.5px,transparent 1.5px);background-size:18px 18px;
  mask-image:linear-gradient(90deg,transparent,#000);
}
.tc-agreement-art{position:relative;z-index:2}
.tc-doc{width:80px;height:80px;display:grid;place-items:center;margin:auto;color:#fff;border-radius:13px;background:linear-gradient(145deg,#5c9bff,#1764ef);box-shadow:0 13px 25px rgba(18,100,246,.2)}
.tc-doc svg{width:38px;height:38px}
.tc-agreement h2{margin:0 0 9px;font-size:18px}.tc-agreement p{max-width:580px;margin:0;color:var(--tc-text);font-size:11.5px;line-height:1.7}
.tc-agreement>a{
  position:relative;z-index:3;display:inline-flex;align-items:center;gap:8px;
  padding:13px 21px;color:#fff;font-size:11px;font-weight:800;text-decoration:none;
  border-radius:6px;background:var(--tc-blue);box-shadow:0 10px 20px rgba(18,100,246,.18);
}
.tc-agreement>a svg{width:13px}

/* BOTTOM NOTE */
.tc-bottom-note{
  display:flex;align-items:center;gap:18px;margin-top:22px;padding:18px 24px;
  color:#526078;border:1px solid #edf1f7;border-radius:9px;background:linear-gradient(90deg,#f9fbff,#fff);
}
.tc-bottom-note>svg{width:32px;height:32px;flex:0 0 32px;color:#fff;fill:#347cf5;stroke:#fff}
.tc-bottom-note p{margin:0;font-size:10.5px;line-height:1.6}

/* RESPONSIVE */
@media(max-width:1000px){
  .tc-hero-grid{grid-template-columns:1fr 1fr}
  .tc-layout{grid-template-columns:205px 1fr}
  .tc-agreement{grid-template-columns:110px 1fr}
  .tc-agreement>a{grid-column:2;width:max-content}
}
@media(max-width:800px){
  .tc-hero-grid{grid-template-columns:1fr}
  .tc-hero-copy{padding-bottom:5px}
  .tc-hero-art{height:330px}
  .tc-principles{grid-template-columns:1fr 1fr}
  .tc-layout{grid-template-columns:1fr}
  .tc-sidebar{position:relative;top:auto}
  .tc-toc nav{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .tc-container{width:min(100% - 30px,1180px)}
  .tc-hero h1{font-size:47px;letter-spacing:-2px}
  .tc-hero-copy>p{font-size:13.5px}
  .tc-date-card{width:100%}
  .tc-hero-art{height:280px}
  .tc-paper{width:160px;height:220px;padding:35px 22px}
  .paper-title{font-size:15px}.paper-row span{width:75px}.paper-sign{bottom:20px;left:48px;font-size:17px}
  .tc-shield,.tc-shield svg{width:105px;height:120px}
  .tc-scale,.tc-handshake{width:55px;height:55px}.tc-gavel{width:52px;height:52px}
  .orbit-1{width:280px;height:280px}.orbit-2{width:215px;height:215px}.orbit-3{width:150px;height:150px}
  .tc-principles{grid-template-columns:1fr}
  .tc-toc nav{grid-template-columns:1fr}
  .tc-agreement{grid-template-columns:1fr;padding:28px 22px;text-align:center}
  .tc-agreement:before{left:50%;transform:translateX(-50%)}
  .tc-agreement>a{grid-column:1;margin:auto}
  .tc-bottom-note{align-items:flex-start}
}

/* =========================================================
   CRITICAL FIX: override global `section { padding:100px 0 }`
   for Terms accordion cards.
========================================================= */
.tc-page .tc-section{
  padding:0 !important;
}

/* Keep legal-page content at a balanced readable width */
.tc-page .tc-layout{
  grid-template-columns:235px minmax(0, 760px);
  justify-content:center;
  gap:38px;
}

.tc-page .tc-terms{
  width:100%;
  max-width:760px;
  min-width:0;
}

.tc-page .tc-section{
  width:100%;
  max-width:760px;
}

@media(max-width:1000px){
  .tc-page .tc-layout{
    grid-template-columns:205px minmax(0, 1fr);
  }
  .tc-page .tc-terms,
  .tc-page .tc-section{
    max-width:none;
  }
}

@media(max-width:800px){
  .tc-page .tc-layout{
    grid-template-columns:1fr;
  }
}
