/*
 * Legal pages (template-parts/legal.php): a navy title band with the tabs between the legal
 * pages, then a sticky table of contents beside "At a glance" and the numbered sections.
 * House colours written out per rule: navy #0e1620, gold #c8a44a / #a8862e / #e0c475,
 * teal #1a6e8a for links, cream #faf8f4 and paper #f8f5ee.
 */
.tgt-legal { background: #faf8f4; color: #1b1b1b; }

/* ---------------------------------------------------------------- Title band */
.tgt-legal__hero { padding: 40px 0 0; background: radial-gradient(circle at 90% 0%, rgba(200, 164, 74, .16), rgba(200, 164, 74, 0) 45%), #0e1620; color: #fff; }
.tgt-legal__hero .tgt-crumbs { margin: 0 0 22px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.tgt-legal__hero .tgt-crumbs a { color: rgba(255, 255, 255, .75); }
.tgt-legal__hero .tgt-crumbs a:hover { color: #e0c475; }
.tgt-legal__kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 12px; font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #e0c475; }
.tgt-legal__kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.tgt-legal__title { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(36px, 2.4vw + 22px, 58px); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; color: #fff; }
.tgt-legal__lead { max-width: 680px; margin: 16px 0 0; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .82); }
.tgt-legal__updated { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.tgt-legal__updated .tgc-ico { width: 16px; height: 16px; color: #e0c475; }
.tgt-legal__tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 30px 0 0; }
.tgt-legal__tabs a,
.tgt-legal__tabs button { padding: 13px 18px; border: 0; border-radius: 12px 12px 0 0; background: rgba(255, 255, 255, .07); font: 700 14px/1.2 'Trebuchet MS', 'Segoe UI', sans-serif; color: rgba(255, 255, 255, .8); text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease; }
.tgt-legal__tabs a:hover,
.tgt-legal__tabs button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.tgt-legal__tabs a[aria-current="page"] { background: #faf8f4; color: #0e1620; }
.tgt-legal__tabs button { margin-left: auto; background: transparent; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Contents and body */
.tgt-legal__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 48px 72px; }
.tgt-legal__toc { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; }
.tgt-legal__toc-title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #a8862e; }
.tgt-legal__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid #e6e0d5; }
.tgt-legal__toc a { display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: #5a5448; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.tgt-legal__toc a span { flex: none; font-family: Georgia, 'Times New Roman', serif; color: #a8862e; }
.tgt-legal__toc a:hover { color: #0e1620; }
.tgt-legal__toc a.is-here { border-left-color: #c8a44a; color: #0e1620; font-weight: 700; }

.tgt-legal__body { max-width: 780px; }
.tgt-legal__glance { margin: 0 0 40px; padding: 24px 26px; border: 1px solid rgba(200, 164, 74, .45); border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(14, 22, 32, .06); }
.tgt-legal__glance-title { margin: 0 0 12px; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; color: #0e1620; }
.tgt-legal__glance ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.tgt-legal__glance li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.55; color: #2d2a24; }
.tgt-legal__glance .tgc-ico { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #a8862e; }

.tgt-legal__sec { padding: 30px 0; border-top: 1px solid #e6e0d5; scroll-margin-top: 110px; }
.tgt-legal__sec h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(24px, .8vw + 18px, 30px); font-weight: 400; line-height: 1.2; color: #0e1620; }
.tgt-legal__no { flex: none; font-size: .7em; font-style: italic; color: #a8862e; }
.tgt-legal__text { font-size: 16px; line-height: 1.75; color: #3d3a33; }
.tgt-legal__text p { margin: 0 0 14px; }
.tgt-legal__text h3 { margin: 22px 0 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; font-weight: 400; color: #0e1620; }
.tgt-legal__text ul,
.tgt-legal__text ol { margin: 0 0 14px; padding-left: 22px; }
.tgt-legal__text li { margin: 0 0 8px; }
.tgt-legal__text li::marker { color: #a8862e; }
.tgt-legal__text strong { color: #0e1620; }
.tgt-legal__text a,
.tgt-legal__text .tgt-legal__inline-btn { color: #1a6e8a; font-weight: 700; }
.tgt-legal__text a { text-decoration: underline; text-underline-offset: 3px; }
.tgt-legal__text a:hover { color: #145670; }
.tgt-legal__text code { padding: 1px 6px; border-radius: 6px; background: #f1ece2; font-size: 14px; }
.tgt-legal__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 16px 0 0; overflow: hidden; border: 1px solid #e6e0d5; border-radius: 14px; background: #e6e0d5; }
.tgt-legal__facts div { padding: 12px 16px; background: #fff; }
.tgt-legal__facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tgt-legal__facts dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a8862e; }
.tgt-legal__facts dd { margin: 3px 0 0; font-size: 15.5px; color: #0e1620; overflow-wrap: anywhere; }

.tgt-legal__contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding: 24px 26px; border-radius: 18px; background: #0e1620; color: rgba(255, 255, 255, .8); }
.tgt-legal__contact-title { margin: 0 0 4px; font-family: Georgia, 'Times New Roman', serif; font-size: 21px; color: #fff; }
.tgt-legal__contact p { margin: 0; }
.tgt-legal__contact-act { display: flex; flex-wrap: wrap; gap: 10px; }
.tgt-legal__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; font-size: 14.5px; font-weight: 700; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.tgt-legal__btn:hover { border-color: #e0c475; color: #e0c475; }
.tgt-legal__btn svg { flex: none; width: 18px; height: 18px; }
.tgt-legal__btn--wa { border-color: #25d366; background: #25d366; }
.tgt-legal__btn--wa svg { fill: currentColor; }
.tgt-legal__btn--wa:hover { border-color: #1ebe5b; background: #1ebe5b; color: #fff; }

@media (max-width: 1024px) {
	.tgt-legal__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 56px; }
	.tgt-legal__toc { position: static; max-height: none; padding: 18px 20px; border: 1px solid #e6e0d5; border-radius: 16px; background: #fff; }
	.tgt-legal__toc ol { columns: 2; column-gap: 24px; border-left: 0; }
	.tgt-legal__toc a { padding-left: 0; border-left: 0; break-inside: avoid; }
	.tgt-legal__body { max-width: none; }
}
@media (max-width: 640px) {
	.tgt-legal__hero { padding-top: 26px; }
	.tgt-legal__tabs { flex-wrap: nowrap; margin-right: -18px; padding-right: 18px; overflow-x: auto; scrollbar-width: none; }
	.tgt-legal__tabs a, .tgt-legal__tabs button { flex: none; padding: 11px 14px; font-size: 13.5px; }
	.tgt-legal__tabs button { margin-left: 0; }
	.tgt-legal__toc ol { columns: 1; }
	.tgt-legal__facts { grid-template-columns: 1fr; }
	.tgt-legal__glance, .tgt-legal__contact { padding: 20px 18px; }
	.tgt-legal__text { font-size: 15.5px; }
}
