* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(173, 36, 23, .16), transparent 28%),
    radial-gradient(circle at 88% 44%, rgba(225, 143, 39, .08), transparent 24%),
    linear-gradient(180deg, #120608, #070305 68%);
  color: #d8c9bd;
  font: 16px/1.72 Arial, Helvetica, sans-serif;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(231, 166, 64, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 166, 64, .025) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
}

a {
  color: #f3c46c;
}

a:hover {
  color: #ffe1a2;
}

a:focus,
button:focus {
  outline: 2px solid #f2b947;
  outline-offset: 3px;
}

.legal-brand:focus,
.legal-brand:active {
  outline: 0;
}

.legal-nav {
  min-height: 80px;
  padding: 8px max(20px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(231, 168, 67, .24);
  background: rgba(12, 5, 7, .95);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .40);
  backdrop-filter: blur(12px);
}

.legal-brand {
  width: 184px;
  height: 64px;
  display: block;
}

.legal-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .68));
}

.legal-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.legal-menu a {
  padding: 9px 11px;
  color: #ddcfc2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-menu a:hover,
.legal-menu a[aria-current="page"] {
  color: #ffd77f;
  background: rgba(116, 24, 19, .20);
}

.legal-hero {
  padding: 90px 24px 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(230, 165, 65, .18);
  text-align: center;
}

.legal-hero:after {
  content: "";
  width: 520px;
  height: 250px;
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(197, 40, 22, .22), rgba(232, 150, 42, .05) 45%, transparent 72%);
  filter: blur(7px);
  pointer-events: none;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  color: #efb653;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
  color: #ffe1a0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.04;
  text-transform: uppercase;
  text-shadow: 0 9px 28px rgba(0, 0, 0, .66), 0 0 24px rgba(190, 43, 21, .18);
}

.legal-hero p {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  color: #bba99d;
  font-size: 17px;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 42px auto 72px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.toc,
.policy,
.info-card,
.download-card,
.support-card {
  border: 1px solid rgba(228, 164, 63, .19);
  background: linear-gradient(145deg, rgba(30, 12, 15, .90), rgba(11, 6, 8, .93));
  box-shadow: 0 22px 58px rgba(0, 0, 0, .30);
}

.toc {
  padding: 20px;
  position: sticky;
  top: 104px;
}

.toc b {
  display: block;
  margin-bottom: 10px;
  color: #f0bd5d;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.toc a {
  padding: 7px 0;
  display: block;
  border-bottom: 1px solid rgba(232, 172, 73, .08);
  color: #ab988b;
  font-size: 13px;
  text-decoration: none;
}

.toc a:hover {
  color: #f3c46b;
}

.policy {
  padding: clamp(24px, 5vw, 54px);
}

.policy h2 {
  margin: 44px 0 14px;
  color: #f1c26a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.25;
}

.policy h2:first-child {
  margin-top: 0;
}

.policy h3 {
  margin: 26px 0 8px;
  color: #e4b359;
  font-size: 17px;
}

.policy p,
.policy li {
  color: #c6b5aa;
}

.policy li + li {
  margin-top: 7px;
}

.policy strong {
  color: #ead3b3;
}

.notice {
  margin: 24px 0;
  padding: 17px 19px;
  border-left: 3px solid #d28e33;
  background: rgba(129, 27, 19, .12);
  color: #d7c5b7;
}

.warning {
  border-left-color: #d25837;
  background: rgba(144, 31, 23, .18);
}

.meta-line {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(230, 168, 68, .14);
  color: #8e7b70;
  font-size: 12px;
}

.cards-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 42px auto 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.download-card,
.support-card {
  padding: 28px;
}

.info-card h2,
.download-card h2,
.support-card h2 {
  margin: 0 0 10px;
  color: #f1c36d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.info-card p,
.download-card p,
.support-card p {
  color: #b8a69a;
}

.tag {
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #efbd60;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.tag:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fd589;
  box-shadow: 0 0 12px rgba(111, 213, 137, .76);
}

.button-row {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button,
button.button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d89638;
  background: linear-gradient(180deg, #ae2b20, #681014 60%, #35070b);
  color: #fff0c5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button.secondary {
  background: rgba(15, 7, 9, .82);
}

.button[aria-disabled="true"] {
  border-color: #5b4740;
  background: #211417;
  color: #8d7f79;
  cursor: not-allowed;
}

.spec-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(232, 172, 72, .10);
  color: #ad9b8f;
  font-size: 13px;
}

.spec-list b {
  color: #e2c39a;
}

.hash {
  overflow-wrap: anywhere;
  color: #c5a365;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.legal-footer {
  padding: 34px 24px 46px;
  border-top: 1px solid rgba(229, 165, 64, .18);
  background: rgba(7, 3, 5, .76);
  color: #8f7c70;
  font-size: 12px;
  text-align: center;
}

.legal-footer a {
  margin: 0 6px;
}

@media (max-width: 860px) {
  .legal-nav {
    position: relative;
    flex-direction: column;
  }

  .legal-menu {
    justify-content: center;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    columns: 2;
  }

  .toc b {
    column-span: all;
  }

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

@media (max-width: 540px) {
  .legal-menu a {
    padding: 7px;
    font-size: 10px;
  }

  .legal-hero {
    padding: 62px 18px 48px;
  }

  .legal-hero p {
    font-size: 15px;
  }

  .toc {
    columns: 1;
  }

  .policy {
    padding: 22px;
  }

  .policy h2 {
    font-size: 23px;
  }

  .button-row,
  .button {
    width: 100%;
  }
}

/* Ritmo vertical mais compacto nas abas internas. */
@media (min-width: 901px) {
  .legal-hero {
    min-height: 350px;
    padding-top: 86px;
    padding-bottom: 52px;
  }

  .page-shell,
  .cards-grid {
    margin-top: 30px;
    margin-bottom: 54px;
  }
}

/* Identidade oriental compartilhada pelas páginas institucionais */
body {
  background:
    linear-gradient(180deg, rgba(7, 2, 4, .45), #0a0305 660px),
    url("../Images/Oriental2026/hero-dragon-warlord.png") center top / 1920px auto no-repeat,
    #080305;
}

body:before {
  background:
    linear-gradient(180deg, transparent 240px, rgba(8, 3, 5, .60) 520px, #080305 900px),
    radial-gradient(circle at 50% 180px, rgba(196, 62, 23, .15), transparent 36%);
}

.legal-nav {
  border-bottom-color: rgba(235, 174, 69, .36);
  background: linear-gradient(180deg, rgba(18, 6, 8, .98), rgba(8, 3, 5, .96));
}

.legal-nav:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 12px;
  background: linear-gradient(135deg, transparent 8px, rgba(213, 143, 48, .42) 9px, transparent 10px) 0 0 / 30px 12px repeat-x;
  pointer-events: none;
}

.legal-hero {
  min-height: 340px;
  padding-top: 100px;
  display: grid;
  align-content: center;
  background:
    linear-gradient(90deg, rgba(7, 2, 4, .78), rgba(8, 3, 5, .30) 48%, rgba(7, 2, 4, .64)),
    url("../Images/Oriental2026/dragon-fortress-banner.png") center / cover no-repeat;
  box-shadow: inset 0 -75px 70px #080305;
}

.legal-hero:before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(238, 180, 78, .14);
  pointer-events: none;
}

.legal-hero h1 {
  text-shadow: 0 7px 30px #000, 0 0 22px rgba(211, 73, 24, .25);
}

.page-shell,
.cards-grid {
  position: relative;
}

.policy,
.info-card,
.toc {
  border-color: rgba(226, 162, 63, .29);
  background: linear-gradient(145deg, rgba(32, 11, 14, .96), rgba(9, 4, 6, .98));
  box-shadow: 0 24px 58px rgba(0, 0, 0, .40), inset 0 1px rgba(255, 221, 145, .04);
}

.policy,
.info-card {
  position: relative;
}

.policy:before,
.info-card:before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-top: 1px solid rgba(231, 169, 66, .52);
  border-right: 1px solid rgba(231, 169, 66, .52);
  pointer-events: none;
}

.button {
  box-shadow: 0 12px 28px rgba(99, 10, 12, .36), inset 0 1px rgba(255, 224, 146, .23);
}

.legal-footer {
  background:
    linear-gradient(90deg, rgba(12, 4, 6, .97), rgba(49, 11, 14, .86), rgba(12, 4, 6, .97)),
    url("../Images/Oriental2026/dragon-fortress-banner.png") center / cover no-repeat;
}

@media (max-width: 860px) {
  body { background-size: auto 760px; }
  .legal-hero { min-height: 310px; }
}

@media (max-width: 540px) {
  .legal-hero {
    min-height: 300px;
    padding-top: 72px;
    background-position: 68% center;
  }
}

/* Navegacao imperial compartilhada das paginas institucionais. */
.legal-nav {
  min-height: 94px;
  padding: 0 max(24px, calc((100% - 1240px) / 2));
  justify-content: center;
  position: sticky;
  isolation: isolate;
  border-bottom-color: rgba(225, 159, 53, .52);
  background:
    radial-gradient(circle at 50% 120%, rgba(149, 31, 19, .23), transparent 35%),
    linear-gradient(180deg, #100608, #070304 82%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .62), inset 0 -1px rgba(255, 201, 90, .08);
  backdrop-filter: none;
}

.legal-nav:before {
  content: "";
  height: 12px;
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  z-index: -1;
  background: linear-gradient(135deg, transparent 8px, rgba(213, 143, 48, .44) 9px, transparent 10px) 0 0 / 30px 12px repeat-x;
  pointer-events: none;
}

.legal-brand {
  width: 190px;
  height: 104px;
  position: absolute;
  top: -5px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
}

.legal-brand img {
  filter: drop-shadow(0 10px 16px #000) drop-shadow(0 0 9px rgba(223, 91, 24, .28));
  transition: transform .28s ease, filter .28s ease;
}

.legal-brand:hover img {
  transform: translateY(-2px) scale(1.025);
  filter: drop-shadow(0 13px 18px #000) drop-shadow(0 0 13px rgba(238, 123, 31, .38));
}

.legal-menu {
  width: min(100%, 1000px);
  min-height: 94px;
  justify-content: center;
  gap: 22px;
  flex-wrap: nowrap;
}

.legal-menu a {
  min-height: 94px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  position: relative;
  color: #ead9c4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: .09em;
  text-shadow: 0 2px 7px #000;
}

.legal-menu a:nth-child(2) {
  margin-right: 340px;
}

.legal-menu a:after {
  content: "";
  height: 2px;
  position: absolute;
  right: 7px;
  bottom: 21px;
  left: 7px;
  background: linear-gradient(90deg, transparent, #e6ad4b, transparent);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.legal-menu a:hover,
.legal-menu a[aria-current="page"] {
  color: #ffe09c;
  background: transparent;
}

.legal-menu a:hover:after,
.legal-menu a[aria-current="page"]:after {
  transform: scaleX(1);
}

.error-page .legal-menu a:nth-child(2) {
  margin-right: 0;
}

.error-page .legal-menu a:first-child {
  margin-right: 340px;
}

.legal-hero {
  min-height: 390px;
  padding: 112px 24px 70px;
  background:
    linear-gradient(90deg, rgba(7, 2, 4, .82), rgba(8, 3, 5, .30) 48%, rgba(7, 2, 4, .70)),
    linear-gradient(180deg, transparent 45%, #080305 100%),
    url("../Images/Oriental2026/hero-dragon-warlord.png") center 38% / cover no-repeat;
  box-shadow: inset 0 -95px 80px #080305;
}

.legal-hero:before {
  inset: 24px max(18px, calc((100% - 1240px) / 2));
  border-color: rgba(238, 180, 78, .23);
  background:
    linear-gradient(90deg, #d89b35 0 54px, transparent 54px) left top / 160px 1px no-repeat,
    linear-gradient(#d89b35 0 54px, transparent 54px) left top / 1px 160px no-repeat,
    linear-gradient(270deg, #d89b35 0 54px, transparent 54px) right bottom / 160px 1px no-repeat,
    linear-gradient(0deg, #d89b35 0 54px, transparent 54px) right bottom / 1px 160px no-repeat;
}

.eyebrow {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 6px 20px;
  border: 1px solid rgba(222, 155, 53, .52);
  background: rgba(41, 8, 10, .76);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .36);
}

.legal-hero h1 {
  font-size: clamp(38px, 5.3vw, 67px);
  letter-spacing: .035em;
}

.legal-hero p {
  padding: 0 14px;
  color: #dbc8b7;
  text-shadow: 0 3px 12px #000;
}

@media (max-width: 900px) {
  .legal-nav {
    min-height: 142px;
    padding: 76px 16px 8px;
  }

  .legal-brand {
    width: 164px;
    height: 82px;
  }

  .legal-menu {
    width: 100%;
    min-height: 54px;
    gap: 5px;
    flex-wrap: wrap;
  }

  .legal-menu a,
  .legal-menu a:nth-child(2),
  .error-page .legal-menu a:first-child {
    min-height: 42px;
    margin-right: 0;
    padding: 0 9px;
    font-size: 11px;
  }

  .legal-menu a:after {
    bottom: 5px;
  }

  .legal-hero {
    min-height: 360px;
    padding-top: 96px;
  }
}

@media (max-width: 540px) {
  .legal-nav {
    min-height: 166px;
  }

  .legal-menu {
    max-width: 360px;
  }

  .legal-menu a {
    flex: 1 1 auto;
  }

  .legal-hero {
    min-height: 345px;
    padding: 86px 18px 54px;
    background-position: 61% center;
  }

  .legal-hero:before {
    inset: 18px 10px;
  }
}

@media (min-width: 901px) {
  .legal-hero {
    min-height: 350px;
    padding-top: 86px;
    padding-bottom: 52px;
  }

  .page-shell,
  .cards-grid {
    margin-top: 30px;
    margin-bottom: 54px;
  }
}
