/*
 * Legal document pages: view/end-user-policy, view/privacy-notice, view/terms-of-services.
 *
 * Everything is scoped under .rt-legal so the sign-up terms modal (view/e-u-p, which loads
 * agreement.css too) keeps its own appearance. Loaded AFTER agreement.css in each view.
 *
 * Deliberately does not touch `ol` - agreement.css builds the numbered clause system in the
 * Terms of Service out of counters(item, "."), and restyling ol here would break the numbering.
 */
.rt-legal {
	--rt-font:      hind_vadodara_regular, "Segoe UI", Calibri, Arial, sans-serif;
	--rt-font-med:  hind_vadodara_medium, hind_vadodara_regular, "Segoe UI", Calibri, Arial, sans-serif;
	--rt-font-bold: hind_vadodara_semi_bold, hind_vadodara_medium, "Segoe UI", Calibri, Arial, sans-serif;
	--rt-ink:    #0E1424;
	--rt-blue:   #1A1AD1;
	--rt-blue-d: #1414A8;
	--rt-canvas: #F7F8FC;
	--rt-line:   #E3E5F0;
	--rt-muted:  #3F4656;

	display: block;
	min-height: 100vh;
	padding: 26px 24px 64px;
	background: var(--rt-canvas);
	position: relative;
	overflow: hidden;
	font-family: var(--rt-font);
	color: var(--rt-ink);
}
.rt-legal, .rt-legal *, .rt-legal *::before, .rt-legal *::after { box-sizing: border-box; }

/* ---- header / footer rails, aligned to the reading pane ---- */
.rt-legal-bar,
.rt-legal-foot { width: 100%; max-width: 880px; margin: 0 auto; }
.rt-legal-bar  { margin-bottom: 26px; }
.rt-legal-foot { margin-top: 26px; }
.rt-legal .rt-logo { width: 210px; height: auto; max-width: 100%; display: block; }

/* ---- the reading pane ---- */
.rt-legal .container { width: 100%; max-width: 880px; margin: 0 auto; padding: 0; }
.rt-legal .center_box {
	background: #fff !important;
	border: 1px solid var(--rt-line);
	border-radius: 22px;
	box-shadow: 0 1px 2px rgba(18, 19, 26, .04), 0 24px 48px -28px rgba(18, 19, 26, .18) !important;
	margin: 0 !important;
	padding: 0 !important;
}
/* .card-body is the wrapper all four pages share: .card-body.agrement-body on the three
   notices, plain .card-body on the cookies page. Base type lives here so the cookies page
   (which has no .content wrapper) inherits it too. */
.rt-legal .card-body {
	padding: 44px 52px 48px;
	font-size: 16px; line-height: 1.75; color: var(--rt-muted);
}
.rt-legal .card-body p { margin: 0 0 14px; }

/* ---- document head ---- */
/* text-align and the divider's display are set here rather than inherited: the cookies page
   is the one view in this set that does not load agreement.css. */
.rt-legal .section-header { margin-bottom: 30px; text-align: center; }
.rt-legal .section-header .section-title {
	font-family: var(--rt-font-bold);
	font-size: 32px; line-height: 1.16; font-weight: 600;
	letter-spacing: -.015em; color: var(--rt-ink);
	text-align: center;
	margin: 0 0 16px;
}
.rt-legal .section-header .section-divider {
	display: block;
	width: 56px; height: 3px; border-radius: 2px;
	background: var(--rt-blue) !important;
	background-image: none !important;
	margin: 0 auto;
}
/* the body itself stays left-aligned under the centred head */
.rt-legal .card-body > *:not(.section-header) { text-align: left; }

/* ---- document body ---- */
.rt-legal .content { font-size: 16px; line-height: 1.75; color: var(--rt-muted); }
.rt-legal .content p { margin: 0 0 14px; }
.rt-legal .agrement-heading,
.rt-legal .cookie-heading {
	font-family: var(--rt-font-bold);
	font-size: 20px; line-height: 1.3; font-weight: 600;
	color: var(--rt-ink);
	margin: 30px 0 12px;
}
.rt-legal .cookie-content { margin-top: 4px; }
.rt-legal .content h1, .rt-legal .content h2,
.rt-legal .content h3, .rt-legal .content h4 { color: var(--rt-ink); }
.rt-legal .content ul { padding-left: 22px; margin: 0 0 14px; }
.rt-legal .content ul li { margin-bottom: 6px; }
.rt-legal .content a {
	color: var(--rt-blue);
	text-decoration: underline; text-underline-offset: 2px;
}
.rt-legal .content a:hover { color: var(--rt-blue-d); }
.rt-legal .content .bold,
.rt-legal .content .name { font-family: var(--rt-font-bold); font-weight: 600; color: var(--rt-ink); }
.rt-legal .content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.rt-legal .content td, .rt-legal .content th {
	border: 1px solid var(--rt-line); padding: 10px 12px; vertical-align: top;
}
.rt-legal .content th { background: #F7F8FC; color: var(--rt-ink); font-weight: 600; text-align: left; }

/* ---- back link, same row treatment as the sign-in screens ---- */
.rt-legal .rt-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; font-size: 14.5px; }
.rt-legal .rt-meta-link {
	display: inline-block;
	font-family: var(--rt-font-bold); font-weight: 600;
	color: var(--rt-blue) !important; text-decoration: none !important;
}
.rt-legal .rt-meta-link > span { text-decoration: underline; text-underline-offset: 3px; }
.rt-legal .rt-meta-link:hover { color: var(--rt-blue-d) !important; }
/* Tenant theme saved: the accent follows the portal header colour, via the same CSS
   variables the navbar reads. :not(.is-quiet) keeps the muted link muted. */
.rt-themed .rt-legal .section-header .section-divider { background: var(--navbar-color, var(--rt-blue)) !important; }
.rt-themed .rt-legal .rt-meta-link:not(.is-quiet) { color: var(--navbar-color, var(--rt-blue)) !important; }
.rt-themed .rt-legal .rt-meta-link:not(.is-quiet):hover { color: var(--navbar-hover-dark, var(--rt-blue-d)) !important; }
.rt-themed .rt-legal .content a { color: var(--navbar-color, var(--rt-blue)); }
.rt-legal .rt-meta-link.sep::after { content: "\00B7"; margin: 0 9px; color: #C4C9D8; text-decoration: none; }

/* ---- responsive ---- */
@media (max-width: 900px) {
	.rt-legal { padding: 22px 16px 48px; }
	.rt-legal .agrement-body { padding: 30px 24px 34px; }
	.rt-legal .section-header .section-title { font-size: 26px; }
	.rt-legal .content { font-size: 15.5px; }
	/* long clause tables in the Terms must scroll on their own, never the page */
	.rt-legal .content table { display: block; overflow-x: auto; }
}

/* ---- ground texture ----
   The same dot chevron the ticket page ghosts into its corners, so the flat canvas here
   reads as the same surface rather than a bare rectangle. Drawn as pseudo-elements from a
   data URI so none of the four views need to carry the SVG. */
.rt-legal::before,
.rt-legal::after {
	content: "";
	position: absolute;
	z-index: 0;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 539 539'%3E%3Ccircle cx='38.5' cy='38.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='115.5' cy='38.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='192.5' cy='38.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='269.5' cy='38.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='115.5' cy='115.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='192.5' cy='115.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='269.5' cy='115.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='346.5' cy='115.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='192.5' cy='192.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='269.5' cy='192.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='346.5' cy='192.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='423.5' cy='192.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='269.5' cy='269.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='346.5' cy='269.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='423.5' cy='269.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='500.5' cy='269.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='192.5' cy='346.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='269.5' cy='346.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='346.5' cy='346.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='423.5' cy='346.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='115.5' cy='423.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='192.5' cy='423.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='269.5' cy='423.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='346.5' cy='423.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='38.5' cy='500.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='115.5' cy='500.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='192.5' cy='500.5' r='25' fill='%231A1AD1'/%3E%3Ccircle cx='269.5' cy='500.5' r='25' fill='%231A1AD1'/%3E%3C/svg%3E") no-repeat center / contain;
}
.rt-legal::before { left: -70px;  top: -80px;     width: 360px; height: 360px; opacity: .055; }
.rt-legal::after  { right: -90px; bottom: -110px; width: 420px; height: 420px; opacity: .05; }
/* keep the content above the texture */
.rt-legal-bar,
.rt-legal-foot,
.rt-legal .container { position: relative; z-index: 1; }

@media (max-width: 900px) {
	.rt-legal::before { width: 240px; height: 240px; left: -60px; top: -60px; }
	.rt-legal::after  { width: 260px; height: 260px; right: -70px; bottom: -80px; }
}

/* ---- cookies page ----
   Keeps the shared 880px measure of the other three notices, but centres the pane in the
   space below the logo - the page holds ~400 characters, so left top-aligned it sat high on
   an otherwise empty screen. Scoped to .cookies; the long notices stay top-aligned. */
.rt-legal.cookies { display: flex; flex-direction: column; }
.rt-legal.cookies .rt-legal-bar { flex: none; }
.rt-legal.cookies .container { flex: none; margin-top: auto; }
.rt-legal.cookies .rt-legal-foot { flex: none; margin-bottom: auto; }

@media (max-width: 900px) {
	.rt-legal.cookies .container { margin-top: 24px; }
	.rt-legal.cookies .rt-legal-foot { margin-bottom: 0; }
}
